diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2020-09-19 17:49:43 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2020-09-19 17:49:43 +0300 |
| commit | afab7c04f648ea0573e627255f3ea6aae3f32161 (patch) | |
| tree | 90729496473c4fec2c4b0b7ec035088135c87dab | |
| parent | 352e91ab8b0973ed7780c3854a56121bd78e171a (diff) | |
| download | hid-tmff2-afab7c04f648ea0573e627255f3ea6aae3f32161.tar.gz hid-tmff2-afab7c04f648ea0573e627255f3ea6aae3f32161.zip | |
Fixed indexing of periodic init
| -rw-r--r-- | hid-tmt300rs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hid-tmt300rs.c b/hid-tmt300rs.c index a8c4c0f..3806fdc 100644 --- a/hid-tmt300rs.c +++ b/hid-tmt300rs.c @@ -25,7 +25,6 @@ static struct t300rs_device_entry *t300rs_get_device(struct hid_device *hdev){ return NULL; } spin_unlock_irqrestore(&lock, lock_flags); - return t300rs; } @@ -889,11 +888,11 @@ static int t300rs_upload_periodic(struct t300rs_device_entry *t300rs, struct t30 send_buffer[24] = le_duration & 0xff; send_buffer[25] = le_duration >> 8; - send_buffer[27] = le_offset & 0xff; - send_buffer[28] = le_offset >> 8; + send_buffer[28] = le_offset & 0xff; + send_buffer[29] = le_offset >> 8; - send_buffer[30] = 0xff; send_buffer[31] = 0xff; + send_buffer[32] = 0xff; ret = t300rs_send_int(t300rs->input_dev, send_buffer, &trans); if(ret){ |
