Skip to content

Commit

Permalink
debug: improve app_throw_info
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Nov 30, 2023
1 parent 3097223 commit 0195e60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib_standard_app/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
#endif

#ifdef HAVE_DEBUG_THROWS
static char errordata[20];

static char errordata[30];
// This function can be used to declare a callback to THROW in the application
WEAK void app_throw_info(unsigned int exception, unsigned int lr_val)
{
snprintf(errordata, sizeof(errordata), "n%d, LR=0x%08X", exception, lr_val);
snprintf(errordata, sizeof(errordata), "0x%04X LR=0x%08X", exception, lr_val);
}

static void review_choice(bool confirm)
Expand Down

0 comments on commit 0195e60

Please sign in to comment.