global: re-enable sleep in sleep_ms
This commit is contained in:
parent
61cc2491a6
commit
2a7fe9ae93
2
global.c
2
global.c
|
@ -167,7 +167,7 @@ void sleep_ms(uint32_t duration)
|
||||||
sleep_duration = duration; // save sleep duration for count down
|
sleep_duration = duration; // save sleep duration for count down
|
||||||
systick_counter_enable(); // start counting
|
systick_counter_enable(); // start counting
|
||||||
while (sleep_duration>0) { // wait for count down to complete
|
while (sleep_duration>0) { // wait for count down to complete
|
||||||
// __WFI(); // go to sleep
|
__WFI(); // go to sleep
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue