1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core/lib: guard pm_off

This commit is contained in:
MrKevinWeiss 2024-04-02 11:47:46 +02:00
parent 35f6267721
commit 1fcdb107ba
No known key found for this signature in database
GPG Key ID: C26684F1C0767FFF

View File

@ -81,7 +81,7 @@ static void *main_trampoline(void *arg)
}
#endif
if (IS_ACTIVE(CONFIG_CORE_EXIT_WITH_MAIN)) {
if (IS_ACTIVE(CONFIG_CORE_EXIT_WITH_MAIN) && IS_USED(MODULE_PERIPH_PM)) {
pm_off();
}