Incremented GT911 configuration with +1 and stopped writing it to GT911 on init/start if the same version has already been flashed to GT911 (as previously).

This commit is contained in:
rotorman
2021-07-18 11:32:14 +02:00
parent 0423b8d286
commit ef08fc019f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -638,7 +638,7 @@ bool touchPanelInit(void)
}
TRACE("Chip config Ver:%x", tmp[0]);
if (tmp[0] <= GT911_CFG_NUMER) //Config ver
if (tmp[0] < GT911_CFG_NUMER) //Config ver
{
TRACE("Sending new config %d", GT911_CFG_NUMER);
if (!I2C_GT911_SendConfig())
+1 -1
View File
@@ -33,7 +33,7 @@ bool touchPanelEventOccured();
#define GT911_TIMEOUT 3 // 3ms
#define GT911_MAX_TP 5
#define GT911_CFG_NUMER 0x6C
#define GT911_CFG_NUMER 0x6D
//I2C
#define GT911_I2C_ADDR 0x14