Browse Source

global: re-enable sleep in sleep_ms

spark_strober
King Kévin 5 years ago
parent
commit
2a7fe9ae93
  1. 2
      global.c

2
global.c

@ -167,7 +167,7 @@ void sleep_ms(uint32_t duration) @@ -167,7 +167,7 @@ void sleep_ms(uint32_t duration)
sleep_duration = duration; // save sleep duration for count down
systick_counter_enable(); // start counting
while (sleep_duration>0) { // wait for count down to complete
// __WFI(); // go to sleep
__WFI(); // go to sleep
}
}

Loading…
Cancel
Save