1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-30 08:51:19 +01:00

Merge pull request #20508 from Teufelchen1/core/guard_pm

core: Guard pm_set_lowest with module_periph_pm
This commit is contained in:
benpicco 2024-03-26 23:19:46 +00:00 committed by GitHub
commit 84bf9215b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;