From e3da305ae24c12dbb737a66cf04260f0eac6bd8d Mon Sep 17 00:00:00 2001 From: Teufelchen1 Date: Tue, 26 Mar 2024 19:40:25 +0100 Subject: [PATCH] core: Guard pm_set_lowest with module periph_pm --- core/lib/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/lib/init.c b/core/lib/init.c index e21f6bff8436..75abf23dd6b7 100644 --- a/core/lib/init.c +++ b/core/lib/init.c @@ -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;