better error handling: initializing LCD sooner rather than later
This commit is contained in:
parent
4e151fae9c
commit
27cfa521f0
|
@ -325,17 +325,6 @@ void initHardware(Logging *l) {
|
|||
*/
|
||||
initPrimaryPins();
|
||||
|
||||
#if EFI_HD44780_LCD
|
||||
// initI2Cmodule();
|
||||
lcd_HD44780_init(sharedLogger);
|
||||
if (hasFirmwareError())
|
||||
return;
|
||||
|
||||
lcd_HD44780_print_string(VCS_VERSION);
|
||||
|
||||
#endif /* EFI_HD44780_LCD */
|
||||
|
||||
|
||||
if (hasFirmwareError()) {
|
||||
return;
|
||||
}
|
||||
|
@ -361,6 +350,16 @@ void initHardware(Logging *l) {
|
|||
resetConfigurationExt(sharedLogger, engineConfiguration->engineType PASS_ENGINE_PARAMETER);
|
||||
#endif /* EFI_INTERNAL_FLASH */
|
||||
|
||||
#if EFI_HD44780_LCD
|
||||
// initI2Cmodule();
|
||||
lcd_HD44780_init(sharedLogger);
|
||||
if (hasFirmwareError())
|
||||
return;
|
||||
|
||||
lcd_HD44780_print_string(VCS_VERSION);
|
||||
|
||||
#endif /* EFI_HD44780_LCD */
|
||||
|
||||
if (hasFirmwareError()) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue