Skip to content

Commit

Permalink
main: Replaced the TRY_CATCH logic in main() with the new mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Jun 2, 2024
1 parent 90c595f commit 41153ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ int main(void)
#endif

while (true) {
volatile exception_s e;
TRY_CATCH (e, EXCEPTION_ALL) {
TRY (EXCEPTION_ALL) {
bmp_poll_loop();
}
if (e.type) {
CATCH () {
default:
gdb_putpacketz("EFF");
target_list_free();
gdb_outf("Uncaught exception: %s\n", e.msg);
gdb_outf("Uncaught exception: %s\n", exception_frame.msg);
morse("TARGET LOST.", true);
}
#if PC_HOSTED == 1
Expand Down

0 comments on commit 41153ab

Please sign in to comment.