diff --git a/CREDITS b/CREDITS index 413996f..ca5622b 100644 --- a/CREDITS +++ b/CREDITS @@ -236,6 +236,10 @@ Daryl Fonseca-Holt Thien Vu - shuttleVFD driver +Thomas Jarosch + - support reporting in hd44780's ConnectionType functions + + Further developers in the sourceforge lcdproc team: Mindaugas Idzelis aim4min diff --git a/ChangeLog b/ChangeLog index d74b49e..c6a87c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -38,6 +38,7 @@ v.0.5dev (ongoing development) * hd44780 driver: reorganize ConnectionType recognition + hd44780 driver: new ConnectionType mplay + hd44780 driver: get/set contrast & brightness support for lcd2usb (M. Dolze) + + hd44780 driver: reporting in ConnectionType functions (Thomas Jarosch) v.0.5.2 * fix switching on/off the Load screen in lcdproc client using the menu diff --git a/server/drivers/hd44780-low.h b/server/drivers/hd44780-low.h index 7a6dac6..ca6a8f6 100644 --- a/server/drivers/hd44780-low.h +++ b/server/drivers/hd44780-low.h @@ -170,6 +170,9 @@ typedef struct driver_private_data { typedef struct hwDependentFns { // microsec pauses void (*uPause)(PrivateData *p, int usecs); + // report and debug helper + void (*drv_report)(const int level, const char *format, .../*args*/); + void (*drv_debug)(const int level, const char *format, .../*args*/); // Senddata to the LCD // dispID - display to send data to (0 = all displays) diff --git a/server/drivers/hd44780.c b/server/drivers/hd44780.c index 98a52d9..2856022 100644 --- a/server/drivers/hd44780.c +++ b/server/drivers/hd44780.c @@ -369,6 +369,8 @@ HD44780_init(Driver *drvthis) } // pre-set local function pointers (may be overridden by local init function) p->hd44780_functions->uPause = uPause; + p->hd44780_functions->drv_report = report; + p->hd44780_functions->drv_debug = debug; p->hd44780_functions->senddata = NULL; p->hd44780_functions->backlight = NULL; p->hd44780_functions->set_contrast = NULL;