diff options
| author | Christos Maragkos <whitetowersoftware@gmail.com> | 2026-06-03 18:21:34 +0300 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-06-29 10:57:37 +0200 |
| commit | 1f9b25d3fb65b9384dec16d9db13a3e71abd9145 (patch) | |
| tree | 3e6ac6c99d30a4bf0abcbadad7afad31f55ca782 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | b7556c8e713c88596046a906c7c4385218d44736 (diff) | |
HID: nintendo: Fix imu_timestamp_us double increment per report
Previously, the imu_timestamp_us variable was incremented twice per
report, causing it to advance by two times the desired amount.
This resulted in incorrect jumps in IMU timestamps reported using
MSC_TIMESTAMP, so userspace applications saw corrupted timing on
functions such as gyroscope-based aim and motion controls.
This is fixed by removing the redundant increment at the start of the
report handling so the remaining can account for the full report
interval.
Fixes: 4ff5b10840a88 ("HID: nintendo: add IMU support")
Signed-off-by: Christos Maragkos <whitetowersoftware@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
