Skip to content

Commit

Permalink
pwm : run update only on NuttX
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkabir committed Apr 2, 2017
1 parent 736905c commit 6fbda3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/systemcmds/pwm/pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6fbda3c

Please sign in to comment.