mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
core: Guard pm_set_lowest with module periph_pm
This commit is contained in:
parent
741d6b3d4a
commit
e3da305ae2
@ -93,7 +93,9 @@ static void *idle_thread(void *arg)
|
||||
(void)arg;
|
||||
|
||||
while (1) {
|
||||
pm_set_lowest();
|
||||
if (IS_USED(MODULE_PERIPH_PM)) {
|
||||
pm_set_lowest();
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user