patch from M. Dolze to fix a potential problem with ia variant of hd44780
winamp wiring when using less than 3 displays
This commit is contained in:
@@ -137,7 +137,7 @@ lcdwinamp_HD44780_senddata (PrivateData *p, unsigned char displayID, unsigned ch
|
|||||||
portControl |= p->backlight_bit;
|
portControl |= p->backlight_bit;
|
||||||
|
|
||||||
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