mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/picolibc_syscalls_default: guard pm_off
This commit is contained in:
parent
bead59e9d1
commit
35f6267721
@ -27,7 +27,9 @@
|
||||
|
||||
#include "irq.h"
|
||||
#include "log.h"
|
||||
#ifdef MODULE_PERIPH_PM
|
||||
#include "periph/pm.h"
|
||||
#endif
|
||||
#include "stdio_base.h"
|
||||
|
||||
#ifndef NUM_HEAPS
|
||||
@ -117,7 +119,9 @@ void __attribute__((__noreturn__))
|
||||
_exit(int n)
|
||||
{
|
||||
LOG_INFO("#! exit %i: powering off\n", n);
|
||||
#ifdef MODULE_PERIPH_PM
|
||||
pm_off();
|
||||
#endif /* MODULE_PERIPH_PM */
|
||||
for (;;) {
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user