refactoring
This commit is contained in:
parent
67fc168368
commit
16619a6157
|
@ -462,7 +462,7 @@ void updateDevConsoleState(void) {
|
|||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||
// todo: unify with simulator!
|
||||
if (hasFirmwareError()) {
|
||||
scheduleMsg(&logger, "FATAL error: %s", errorMessageBuffer);
|
||||
scheduleMsg(&logger, "FATAL error: %s", getFirmwareError());
|
||||
warningEnabled = false;
|
||||
scheduleLogging(&logger);
|
||||
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);
|
||||
buffer[engineConfiguration->HD44780width] = 0;
|
||||
lcd_HD44780_set_position(engineConfiguration->HD44780height - 1, 0);
|
||||
|
|
Loading…
Reference in New Issue