check for initialization errors in HD44780 sub-drivers
This commit is contained in:
1 parent
4261f03cfc
commit
c4e41d5fd5
1 file changed
+2
-1
@@ -307,7 +307,8 @@ HD44780_init (Driver * drvthis)
|
||||
p->hd44780_functions->output = NULL;
|
||||
|
||||
// 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
|
||||
HD44780_clear (drvthis);
|
||||
|
||||
Reference in new issue
Block a user