Skip to content

Commit

Permalink
Keep ERR_ASSERT management in main loop
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Aug 28, 2024
1 parent 531f6d1 commit b56fcfc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ static void cardano_main(void)
{
THROW(EXCEPTION_IO_RESET);
}
CATCH(ERR_ASSERT)
{
// Note(ppershing): assertions should not auto-respond
#ifdef RESET_ON_CRASH
// Reset device
io_seproxyhal_se_reset();
#endif
}
CATCH_OTHER(e)
{
if (e >= _ERR_AUTORESPOND_START && e < _ERR_AUTORESPOND_END) {
Expand Down

0 comments on commit b56fcfc

Please sign in to comment.