Skip to content

Commit

Permalink
core: Guard pm_set_lowest with module periph_pm
Browse files Browse the repository at this point in the history
  • Loading branch information
Teufelchen1 committed Mar 26, 2024
1 parent 741d6b3 commit e3da305
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e3da305

Please sign in to comment.