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 ++++- hid-tmff2.ko | Bin 464296 -> 464552 bytes hid-tmff2.o | Bin 322728 -> 323008 bytes 3 files changed, 4 insertions(+), 1 deletion(-) 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); } diff --git a/hid-tmff2.ko b/hid-tmff2.ko index cb88b95..40c400d 100644 Binary files a/hid-tmff2.ko and b/hid-tmff2.ko differ diff --git a/hid-tmff2.o b/hid-tmff2.o index fc70c4b..064b975 100644 Binary files a/hid-tmff2.o and b/hid-tmff2.o differ -- cgit v1.3