aboutsummaryrefslogtreecommitdiff
path: root/hid-tmff2.c
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 /hid-tmff2.c
parent78354042b5865d356517f9516228d9f8872cc66a (diff)
downloadhid-tmff2-c64ac59ec00f42b54ece96359993ebb075cebe93.tar.gz
hid-tmff2-c64ac59ec00f42b54ece96359993ebb075cebe93.zip
more testing
Diffstat (limited to 'hid-tmff2.c')
-rw-r--r--hid-tmff2.c5
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);
}