refactoring

This commit is contained in:
rusefi 2017-11-19 22:04:28 -05:00
parent 3c410e14fe
commit 2741563f6f
2 changed files with 2 additions and 2 deletions

View File

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

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