From c64ac59ec00f42b54ece96359993ebb075cebe93 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 26 Jun 2020 19:27:23 +0300 Subject: more testing --- hid-tmff2.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hid-tmff2.c') 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); } -- cgit v1.3