mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
s syscalls: use pm_off for _exit()
This commit is contained in:
parent
a7502355b8
commit
8c7f2d3e9d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user