make ConnectionType 4bit more fool-proof (M. Dolze)
This commit is contained in:
@@ -28,7 +28,8 @@ v.0.5dev (ongoing development)
|
|||||||
+ option Priority for NoritakeVFD (idea: Richard Muratti)
|
+ option Priority for NoritakeVFD (idea: Richard Muratti)
|
||||||
* overhauled NoritakeVFD driver (idea: Richard Muratti)
|
* overhauled NoritakeVFD driver (idea: Richard Muratti)
|
||||||
* allow wrapping slider menu items with <= 4 keys (M. Dolze)
|
* allow wrapping slider menu items with <= 4 keys (M. Dolze)
|
||||||
* a bit more Doxygen-ation
|
* a bit more Doxygen-ation and documentation
|
||||||
|
* hd44780 driver: make ConnectionType 4bit more fool-proof (M. Dolze)
|
||||||
|
|
||||||
v.0.5.2
|
v.0.5.2
|
||||||
* fix switching on/off the Load screen in lcdproc client using the menu
|
* fix switching on/off the Load screen in lcdproc client using the menu
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ hd_init_4bit(Driver *drvthis)
|
|||||||
PrivateData *p = (PrivateData*) drvthis->private_data;
|
PrivateData *p = (PrivateData*) drvthis->private_data;
|
||||||
HD44780_functions *hd44780_functions = p->hd44780_functions;
|
HD44780_functions *hd44780_functions = p->hd44780_functions;
|
||||||
|
|
||||||
int enableLines = EN1 | EN2 | EN3;
|
int enableLines = EN1 | EN2 | ((p->numDisplays == 3) ? EnMask[2] : 0);
|
||||||
|
|
||||||
// Reserve the port registers
|
// Reserve the port registers
|
||||||
port_access_multiple(p->port,3);
|
port_access_multiple(p->port,3);
|
||||||
@@ -186,7 +186,8 @@ lcdstat_HD44780_senddata(PrivateData *p, unsigned char displayID, unsigned char
|
|||||||
|
|
||||||
if (displayID <= 3) {
|
if (displayID <= 3) {
|
||||||
if (displayID == 0) {
|
if (displayID == 0) {
|
||||||
enableLines = EnMask[0] | EnMask[1] | EnMask[2];
|
enableLines = EnMask[0] | EnMask[1]
|
||||||
|
| ((p->numDisplays == 3) ? EnMask[2] : 0);
|
||||||
} else {
|
} else {
|
||||||
enableLines = EnMask[displayID - 1];
|
enableLines = EnMask[displayID - 1];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user