refactoring
This commit is contained in:
parent
3c410e14fe
commit
2741563f6f
|
@ -462,7 +462,7 @@ void updateDevConsoleState(void) {
|
||||||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||||
// todo: unify with simulator!
|
// todo: unify with simulator!
|
||||||
if (hasFirmwareError()) {
|
if (hasFirmwareError()) {
|
||||||
scheduleMsg(&logger, "FATAL error: %s", errorMessageBuffer);
|
scheduleMsg(&logger, "FATAL error: %s", getFirmwareError());
|
||||||
warningEnabled = false;
|
warningEnabled = false;
|
||||||
scheduleLogging(&logger);
|
scheduleLogging(&logger);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -333,7 +333,7 @@ void updateHD44780lcd(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const char * message = hasFirmwareErrorFlag ? (char *)&errorMessageBuffer : getWarning();
|
const char * message = hasFirmwareErrorFlag ? getFirmwareError() : getWarning();
|
||||||
memcpy(buffer, message, engineConfiguration->HD44780width);
|
memcpy(buffer, message, engineConfiguration->HD44780width);
|
||||||
buffer[engineConfiguration->HD44780width] = 0;
|
buffer[engineConfiguration->HD44780width] = 0;
|
||||||
lcd_HD44780_set_position(engineConfiguration->HD44780height - 1, 0);
|
lcd_HD44780_set_position(engineConfiguration->HD44780height - 1, 0);
|
||||||
|
|
Loading…
Reference in New Issue