diff options
| author | Kimplul <please_don't@IHaveNoWorkEmail.com> | 2020-07-08 13:18:01 +0300 |
|---|---|---|
| committer | Kimplul <please_don't@IHaveNoWorkEmail.com> | 2020-07-08 13:18:01 +0300 |
| commit | c7171a1fe795911a925f47af15352deb6609b001 (patch) | |
| tree | ae979a9695da862384b2811ef26427c4f0d1acfc /hid-tmff2.c | |
| parent | 716eb9c2ef6ac77600eb9c8c8f7e5a2aa9a42f88 (diff) | |
| download | hid-tmff2-c7171a1fe795911a925f47af15352deb6609b001.tar.gz hid-tmff2-c7171a1fe795911a925f47af15352deb6609b001.zip | |
small changes, nothing on value (I assume)
Diffstat (limited to 'hid-tmff2.c')
| -rw-r--r-- | hid-tmff2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hid-tmff2.c b/hid-tmff2.c index 66c712b..b26185f 100644 --- a/hid-tmff2.c +++ b/hid-tmff2.c @@ -354,9 +354,11 @@ static int tmff_play(struct input_dev *dev, void *data, ep = &usbif->cur_altsetting->endpoint[1]; - switch (effect->type) { + switch (effect->type) { case FF_CONSTANT: - x = tmff_scale_s8(effect->u.ramp.start_level, + // this only works with input_ff_create_memless, which clamps + // constant forces to s8 for some reason + x = tmff_scale_s8(effect->u.constant.level, ff_field->logical_minimum, ff_field->logical_maximum); |
