unrecogised ID in begin() makes WIDTH = 0

This commit is contained in:
prenticedavid
2017-09-20 21:56:50 +01:00
parent c7f98da681
commit 0923dda54d

View File

@@ -2643,6 +2643,10 @@ case 0x4532: // thanks Leodino
*p16 = 854;
break;
#endif
default:
p16 = (int16_t *) & WIDTH;
*p16 = 0; //error value for WIDTH
break;
}
_lcd_rev = ((_lcd_capable & REV_SCREEN) != 0);
if (table8_ads != NULL) {