Commit adc8a8b6 authored by ch3's avatar ch3
Browse files

feat(pycardium): Reset micropython in nlr_jump_fail()

parent 98904f56
......@@ -76,15 +76,14 @@ void mp_hal_delay_us(mp_uint_t us)
* Fatal Errors
*/
extern NORETURN void * Reset_Handler (void);
void NORETURN nlr_jump_fail(void* val)
{
/* TODO: Report error and restart */
char msg[] = " >>> nlr_jump_fail <<<\r\n";
epic_uart_write_str(msg, sizeof(msg));
while (1) {
__asm("nop");
}
Reset_Handler();
}
/******************************************************************************
......
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