mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
WFI When sleeping
This commit is contained in:
parent
e7de5bc4f1
commit
9752af11df
@ -11,7 +11,7 @@ void systick_sleep(volatile uint32_t ms)
|
||||
{
|
||||
volatile uint32_t curr_ticks = HAL_GetTick();
|
||||
while ((HAL_GetTick() - curr_ticks) < ms) {
|
||||
//__WFI();
|
||||
__WFI();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user