diff --git a/firmware/system.c b/firmware/system.c index 81d5ee9202..6e6408bf1b 100644 --- a/firmware/system.c +++ b/firmware/system.c @@ -935,7 +935,7 @@ void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */ lcd_setfont(FONT_SYSFIXED); #endif /* output exception */ - n = (n - (unsigned)UIE4 - 20)>>2; /* get exception or interrupt number */ + n = (n - (unsigned)UIE4 + 12)>>2; /* get exception or interrupt number */ snprintf(str,sizeof(str),"I%02x:%s",n,irqname[n]); lcd_puts(0,0,str); snprintf(str,sizeof(str),"at %08x",pc);