Browse Source

pwm : run update only on NuttX

sbg
Mohammed Kabir 8 years ago committed by Lorenz Meier
parent
commit
f915896413
  1. 2
      src/systemcmds/pwm/pwm.c

2
src/systemcmds/pwm/pwm.c

@ -680,11 +680,13 @@ pwm_main(int argc, char *argv[]) @@ -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;

Loading…
Cancel
Save