diff --git a/src/systemcmds/pwm/pwm.c b/src/systemcmds/pwm/pwm.c index 76f89b64ee..6a84e20758 100644 --- a/src/systemcmds/pwm/pwm.c +++ b/src/systemcmds/pwm/pwm.c @@ -680,11 +680,13 @@ pwm_main(int argc, char *argv[]) usleep(2542); +#ifdef __PX4_NUTTX /* Trigger all timer's channels in Oneshot mode to fire * the oneshots with updated values. */ up_pwm_update(); +#endif } return 0;