mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 03:53:33 +08:00
pwm : run update only on NuttX
This commit is contained in:
committed by
Lorenz Meier
parent
e8e4e5be49
commit
f915896413
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user