mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 13:02:25 +08:00
IO: Fix reverse mapping
The reverse mapping was off-by-one in the IO driver.
This commit is contained in:
committed by
Daniel Agar
parent
5a58f25d6a
commit
c04d23645c
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user