From 8c7f2d3e9dea6f3115dc6597832d7aa1fe0e06a2 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Fri, 13 Jan 2017 11:01:02 +0100 Subject: [PATCH] s syscalls: use pm_off for _exit() --- sys/newlib/syscalls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/newlib/syscalls.c b/sys/newlib/syscalls.c index 3489e36c01..a90d54c0ba 100644 --- a/sys/newlib/syscalls.c +++ b/sys/newlib/syscalls.c @@ -82,8 +82,8 @@ __attribute__((used)) void _fini(void) */ void _exit(int n) { - LOG_INFO("#! exit %i: resetting\n", n); - pm_reboot(); + LOG_INFO("#! exit %i: powering off\n", n); + pm_off(); while(1); }