Removed useless debug printf

This commit is contained in:
Denis 2023-12-08 20:19:44 +01:00
parent b59261f1e9
commit 4ce87d1a1b
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -196,8 +196,6 @@ static void handle_rumble_device(dev_in_ev_t *const in_dev, const out_message_ru
}
}
printf("Rumble for %s: l=%d, r=%d\n", libevdev_get_name(in_dev->evdev), (int)in_rumble_msg->motors_left, (int)in_rumble_msg->motors_right);
// load the new effect data
in_dev->ff_effect.u.rumble.strong_magnitude = div_round_closest((int32_t)0xFFFF*(int32_t)in_rumble_msg->motors_left, (int32_t)0xFF);
in_dev->ff_effect.u.rumble.weak_magnitude = div_round_closest((int32_t)0xFFFF*(int32_t)in_rumble_msg->motors_right, (int32_t)0xFF);