distinguishing fatal from panic
This commit is contained in:
parent
2837dca7c0
commit
f54eb4ea8e
|
@ -65,7 +65,7 @@ void chDbgPanic3(const char *msg, const char * file, int line) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if EFI_HD44780_LCD || defined(__DOXYGEN__)
|
#if EFI_HD44780_LCD || defined(__DOXYGEN__)
|
||||||
lcdShowFatalMessage((char *) msg);
|
lcdShowPanicMessage((char *) msg);
|
||||||
#endif /* EFI_HD44780_LCD */
|
#endif /* EFI_HD44780_LCD */
|
||||||
|
|
||||||
if (!main_loop_started) {
|
if (!main_loop_started) {
|
||||||
|
|
|
@ -231,10 +231,10 @@ void lcd_HD44780_init(Logging *sharedLogger) {
|
||||||
printMsg(logger, "lcd_HD44780_init() done");
|
printMsg(logger, "lcd_HD44780_init() done");
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcdShowFatalMessage(char *message) {
|
void lcdShowPanicMessage(char *message) {
|
||||||
BUSY_WAIT_DELAY = TRUE;
|
BUSY_WAIT_DELAY = TRUE;
|
||||||
lcd_HD44780_set_position(0, 0);
|
lcd_HD44780_set_position(0, 0);
|
||||||
lcd_HD44780_print_string("fatal\n");
|
lcd_HD44780_print_string("PANIC\n");
|
||||||
lcd_HD44780_print_string(message);
|
lcd_HD44780_print_string(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ void lcd_HD44780_print_string(const char *string);
|
||||||
int getCurrentHD44780row(void);
|
int getCurrentHD44780row(void);
|
||||||
int getCurrentHD44780column(void);
|
int getCurrentHD44780column(void);
|
||||||
|
|
||||||
void lcdShowFatalMessage(char *message);
|
void lcdShowPanicMessage(char *message);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue