diff options
Diffstat (limited to 'hid-tmff2.c')
| -rw-r--r-- | hid-tmff2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hid-tmff2.c b/hid-tmff2.c index 34680ff..984f5c3 100644 --- a/hid-tmff2.c +++ b/hid-tmff2.c @@ -370,7 +370,10 @@ static int tmff_play(struct input_dev *dev, void *data, } x = (x * fixp_sin16(effect->direction * 360 / 0x10000)) / 0x7fff; - send_buf[5] = x; + + send_buf[5] = tmff_scale_s8(x, + ff_field->logical_minimum, + ff_field->logical_maximum); } |
