diff options
| author | MmAaXx500 <viktor.balogh45@gmail.com> | 2024-09-01 16:32:59 +0200 |
|---|---|---|
| committer | MmAaXx500 <viktor.balogh45@gmail.com> | 2024-09-01 17:32:16 +0200 |
| commit | 760a3bb24312d0feb728008aa2c21543145dc639 (patch) | |
| tree | 6d17b39fe74e0d662e835145a430ce8850482e62 /src/tmt300rs | |
| parent | ab061f834ced0c6d4ccdd77defa762e2e7ec1382 (diff) | |
| download | hid-tmff2-760a3bb24312d0feb728008aa2c21543145dc639.tar.gz hid-tmff2-760a3bb24312d0feb728008aa2c21543145dc639.zip | |
fix missing cpu_to_le16
Diffstat (limited to 'src/tmt300rs')
| -rw-r--r-- | src/tmt300rs/hid-tmt300rs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tmt300rs/hid-tmt300rs.c b/src/tmt300rs/hid-tmt300rs.c index 32e93e3..7d540dc 100644 --- a/src/tmt300rs/hid-tmt300rs.c +++ b/src/tmt300rs/hid-tmt300rs.c @@ -597,8 +597,8 @@ static int t300rs_update_constant(struct t300rs_device_entry *t300rs, packet_mod_constant->effect_type = 0x00; packet_mod_constant->update_type = 0x45; - packet_mod_constant->duration = length; - packet_mod_constant->offset = effect.replay.delay; + packet_mod_constant->duration = cpu_to_le16(length); + packet_mod_constant->offset = cpu_to_le16(effect.replay.delay); ret = t300rs_send_int(t300rs); if (ret) @@ -797,8 +797,8 @@ static int t300rs_update_periodic(struct t300rs_device_entry *t300rs, packet_mod_periodic->effect_type = periodic.waveform - 0x57; packet_mod_periodic->update_type = 0x45; - packet_mod_periodic->duration = length; - packet_mod_periodic->play_offset = effect.replay.delay; + packet_mod_periodic->duration = cpu_to_le16(length); + packet_mod_periodic->play_offset = cpu_to_le16(effect.replay.delay); ret = t300rs_send_int(t300rs); if (ret) |
