Skip to content

Commit

Permalink
Fix operator precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
htrefil committed Aug 28, 2023
1 parent 5a3685f commit adc2e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rkvm-input/src/interceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ impl Interceptor {
let min = abs_info.minimum;
let max = abs_info.maximum;

if min != 0 || max != 0 && max < min {
if (min != 0 || max != 0) && max < min {
log::warn!(
"Detected nonsense min ({}) and max ({}) values for absolute axis {}, disabling it",
min,
Expand Down

0 comments on commit adc2e2e

Please sign in to comment.