fixes for the serial hd44780 subdrivers (Matteo Pillon)

This commit is contained in:
marschap committed 2007-02-02 16:46:07 +00:00
1 parent cc5115fe7f
commit f07c8ba7b5
5 files changed
+27 -8

No files matched your search

+4
View File
@@ -328,6 +328,7 @@ HD44780_init (Driver * drvthis)
p->hd44780_functions->uPause = uPause;
p->hd44780_functions->scankeypad = HD44780_scankeypad;
p->hd44780_functions->output = NULL;
p->hd44780_functions->close = NULL;
// Do connection type specific display init
if (connectionMapping[p->connectiontype_index].init_fn(drvthis) != 0)
@@ -409,6 +410,9 @@ HD44780_close(Driver *drvthis)
{
PrivateData *p = (PrivateData *) drvthis->private_data;
if (p->hd44780_functions->close)
p->hd44780_functions->close(p);
if (p != NULL) {
if (p->framebuf)
free(p->framebuf);