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:
parent
35f6267721
commit
1fcdb107ba
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user