mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
HAL_PX4: fixed bug in pwm send code
many thanks to Oxinarf for spotting this!
This commit is contained in:
parent
c9dfccfb26
commit
d9d6f87195
@ -428,7 +428,7 @@ void PX4RCOutput::_send_outputs(void)
|
||||
}
|
||||
if (to_send > 0) {
|
||||
for (int i=to_send-1; i >= 0; i--) {
|
||||
if (_period[i] == 0 || _period[0] == PWM_IGNORE_THIS_CHANNEL) {
|
||||
if (_period[i] == 0 || _period[i] == PWM_IGNORE_THIS_CHANNEL) {
|
||||
to_send = i;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user