refactoring

This commit is contained in:
rusefi 2017-11-19 22:04:28 -05:00
parent 67fc168368
commit 16619a6157
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);