Commit a9c9d666 authored by Rahix's avatar Rahix
Browse files

fix(pycardium): Return on nlr_jump_fail()



Instead of "rebooting" Pycardium, hand over control to core 0, notifying
it of a severe failure via epic_exit(253).
Signed-off-by: Rahix's avatarRahix <rahix@rahix.de>
parent 518d2a88
......@@ -283,14 +283,12 @@ mp_uint_t mp_hal_ticks_us(void)
* Fatal Errors
*/
extern NORETURN void *Reset_Handler(void);
void NORETURN nlr_jump_fail(void *val)
{
char msg[] = " >>> nlr_jump_fail <<<\r\n";
epic_uart_write_str(msg, sizeof(msg));
Reset_Handler();
epic_exit(253);
}
/******************************************************************************
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment