fix pwm: only update oneshot timers owned by the current pwm_out instance

This fixes the case where oneshot was enabled with multi-instance pwm_out,
triggering oneshot updates too close to each other and as a result could
lead to spinning motors while disarmed.
This commit is contained in:
Beat Küng
2021-10-08 09:42:42 +02:00
committed by Daniel Agar
parent 2ed623c8ae
commit da1df5352c
16 changed files with 24 additions and 24 deletions
+1 -1
View File
@@ -701,7 +701,7 @@ pwm_main(int argc, char *argv[])
* the oneshots with updated values.
*/
up_pwm_update();
up_pwm_update(0xff);
#endif
}
rv = 0;