Browse Source

s syscalls: use pm_off for _exit()

pr/spi.typo
Hauke Petersen 6 years ago
parent
commit
8c7f2d3e9d
  1. 4
      sys/newlib/syscalls.c

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

Loading…
Cancel
Save