Skip to content

Commit

Permalink
s syscalls: use pm_off for _exit()
Browse files Browse the repository at this point in the history
  • Loading branch information
haukepetersen committed Jan 13, 2017
1 parent a750235 commit 8c7f2d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/newlib/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8c7f2d3

Please sign in to comment.