check for initialization errors in HD44780 sub-drivers
This commit is contained in:
@@ -307,7 +307,8 @@ HD44780_init (Driver * drvthis)
|
|||||||
p->hd44780_functions->output = NULL;
|
p->hd44780_functions->output = NULL;
|
||||||
|
|
||||||
// Do connection type specific display init
|
// Do connection type specific display init
|
||||||
connectionMapping[p->connectiontype_index].init_fn (drvthis);
|
if (connectionMapping[p->connectiontype_index].init_fn (drvthis) != 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
// Display startup parameters on the LCD
|
// Display startup parameters on the LCD
|
||||||
HD44780_clear (drvthis);
|
HD44780_clear (drvthis);
|
||||||
|
|||||||
Reference in New Issue
Block a user