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:
@@ -638,7 +638,7 @@ bool touchPanelInit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
TRACE("Chip config Ver:%x", tmp[0]);
|
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);
|
TRACE("Sending new config %d", GT911_CFG_NUMER);
|
||||||
if (!I2C_GT911_SendConfig())
|
if (!I2C_GT911_SendConfig())
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ bool touchPanelEventOccured();
|
|||||||
#define GT911_TIMEOUT 3 // 3ms
|
#define GT911_TIMEOUT 3 // 3ms
|
||||||
|
|
||||||
#define GT911_MAX_TP 5
|
#define GT911_MAX_TP 5
|
||||||
#define GT911_CFG_NUMER 0x6C
|
#define GT911_CFG_NUMER 0x6D
|
||||||
|
|
||||||
//I2C
|
//I2C
|
||||||
#define GT911_I2C_ADDR 0x14
|
#define GT911_I2C_ADDR 0x14
|
||||||
|
|||||||
Reference in New Issue
Block a user