1
0
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:
Hauke Petersen 2017-01-13 11:01:02 +01:00
parent a7502355b8
commit 8c7f2d3e9d

View File

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