rename PWM begun() to enabled()

This commit is contained in:
hathach committed 2017-04-10 15:15:58 +07:00
1 parent 792a011185
commit 33a6bb3642
4 files changed
+22 -9

No files matched your search

@@ -123,7 +123,7 @@ void rtos_idle_callback(void)
// Instruct CPU to enter low-power state until an event/interrupt occured
// Note: This will turn off hardware PWM and maybe other peripherlas !!
// Should only call there is no active PWM devices
if ( !(PWM0.begun() || PWM1.begun() || PWM2.begun() ) )
if ( !(PWM0.enabled() || PWM1.enabled() || PWM2.enabled() ) )
{
waitForEvent();
}