aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimplul <please_don't@IHaveNoWorkEmail.com>2020-06-26 19:27:23 +0300
committerKimplul <please_don't@IHaveNoWorkEmail.com>2020-06-26 19:27:23 +0300
commitc64ac59ec00f42b54ece96359993ebb075cebe93 (patch)
treea31eb48ea2a4707d087f0133477a1ca6aa7f161d
parent78354042b5865d356517f9516228d9f8872cc66a (diff)
downloadhid-tmff2-c64ac59ec00f42b54ece96359993ebb075cebe93.tar.gz
hid-tmff2-c64ac59ec00f42b54ece96359993ebb075cebe93.zip
more testing
-rw-r--r--hid-tmff2.c5
-rw-r--r--hid-tmff2.kobin464296 -> 464552 bytes
-rw-r--r--hid-tmff2.obin322728 -> 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
index cb88b95..40c400d 100644
--- a/hid-tmff2.ko
+++ b/hid-tmff2.ko
Binary files differ
diff --git a/hid-tmff2.o b/hid-tmff2.o
index fc70c4b..064b975 100644
--- a/hid-tmff2.o
+++ b/hid-tmff2.o
Binary files differ