1
0
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:
MrKevinWeiss 2024-04-02 11:47:30 +02:00
parent bead59e9d1
commit 35f6267721
No known key found for this signature in database
GPG Key ID: C26684F1C0767FFF

View File

@ -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 (;;) {
}
}