mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:52:44 +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;
|
(void)arg;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
pm_set_lowest();
|
if (IS_USED(MODULE_PERIPH_PM)) {
|
||||||
|
pm_set_lowest();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user