check for initialization errors in HD44780 sub-drivers

This commit is contained in:
marschap
2006-04-14 12:15:41 +00:00
parent 4261f03cfc
commit c4e41d5fd5
+2 -1
View File
@@ -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);