diff options
Diffstat (limited to 'src/hid_core/hid_types.h')
-rw-r--r-- | src/hid_core/hid_types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hid_core/hid_types.h b/src/hid_core/hid_types.h index 165ecf9de..40a90c2bc 100644 --- a/src/hid_core/hid_types.h +++ b/src/hid_core/hid_types.h @@ -630,7 +630,11 @@ struct VibrationValue { if (low_amplitude != b.low_amplitude || high_amplitude != b.high_amplitude) { return false; } - if (low_frequency != b.low_amplitude || high_frequency != b.high_frequency) { + // Changes in frequency without amplitude don't have any effect + if (low_amplitude == 0 && high_amplitude == 0) { + return true; + } + if (low_frequency != b.low_frequency || high_frequency != b.high_frequency) { return false; } return true; |