From f915896413543b8b5edf100fb3763256ee40e829 Mon Sep 17 00:00:00 2001 From: Mohammed Kabir Date: Sun, 2 Apr 2017 17:57:09 +0200 Subject: [PATCH] pwm : run update only on NuttX --- src/systemcmds/pwm/pwm.c | 2 ++ 1 file changed, 2 insertions(+) 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;