Removed useless debug printf
This commit is contained in:
parent
b59261f1e9
commit
4ce87d1a1b
1 changed files with 0 additions and 2 deletions
2
dev_in.c
2
dev_in.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue