IO: Fix reverse mapping

The reverse mapping was off-by-one in the IO driver.
This commit is contained in:
Lorenz Meier
2021-02-13 19:01:58 +01:00
committed by Daniel Agar
parent 5a58f25d6a
commit c04d23645c
+1 -1
View File
@@ -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);
}
}