Browse Source

IO: Fix reverse mapping

The reverse mapping was off-by-one in the IO driver.
release/1.12
Lorenz Meier 4 years ago committed by Daniel Agar
parent
commit
c04d23645c
  1. 2
      src/drivers/px4io/px4io.cpp

2
src/drivers/px4io/px4io.cpp

@ -1329,7 +1329,7 @@ void PX4IO::update_params() @@ -1329,7 +1329,7 @@ void PX4IO::update_params()
if (param_get(param_find(str), &pwm_rev) == PX4_OK) {
if (pwm_rev >= 1) {
reverse_pwm_mask |= (2 << i);
reverse_pwm_mask |= (1 << i);
}
}

Loading…
Cancel
Save