pwm : run update only on NuttX

This commit is contained in:
Mohammed Kabir
2017-04-02 21:52:18 +02:00
committed by Lorenz Meier
parent e8e4e5be49
commit f915896413
+2
View File
@@ -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;