diff options
| author | Kimplul <please_don't@IHaveNoWorkEmail.com> | 2020-06-26 19:27:23 +0300 |
|---|---|---|
| committer | Kimplul <please_don't@IHaveNoWorkEmail.com> | 2020-06-26 19:27:23 +0300 |
| commit | c64ac59ec00f42b54ece96359993ebb075cebe93 (patch) | |
| tree | a31eb48ea2a4707d087f0133477a1ca6aa7f161d | |
| parent | 78354042b5865d356517f9516228d9f8872cc66a (diff) | |
| download | hid-tmff2-c64ac59ec00f42b54ece96359993ebb075cebe93.tar.gz hid-tmff2-c64ac59ec00f42b54ece96359993ebb075cebe93.zip | |
more testing
| -rw-r--r-- | hid-tmff2.c | 5 | ||||
| -rw-r--r-- | hid-tmff2.ko | bin | 464296 -> 464552 bytes | |||
| -rw-r--r-- | hid-tmff2.o | bin | 322728 -> 323008 bytes |
3 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); } diff --git a/hid-tmff2.ko b/hid-tmff2.ko Binary files differindex cb88b95..40c400d 100644 --- a/hid-tmff2.ko +++ b/hid-tmff2.ko diff --git a/hid-tmff2.o b/hid-tmff2.o Binary files differindex fc70c4b..064b975 100644 --- a/hid-tmff2.o +++ b/hid-tmff2.o |
