From ef08fc019f1130b17546016a9436c1090ae4a426 Mon Sep 17 00:00:00 2001 From: rotorman Date: Sun, 18 Jul 2021 11:32:14 +0200 Subject: [PATCH] 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). --- radio/src/targets/horus/tp_gt911.cpp | 2 +- radio/src/targets/horus/tp_gt911.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/targets/horus/tp_gt911.cpp b/radio/src/targets/horus/tp_gt911.cpp index b9065ad54..667df4b50 100644 --- a/radio/src/targets/horus/tp_gt911.cpp +++ b/radio/src/targets/horus/tp_gt911.cpp @@ -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()) diff --git a/radio/src/targets/horus/tp_gt911.h b/radio/src/targets/horus/tp_gt911.h index 5f3f44f8f..d0fe6e903 100644 --- a/radio/src/targets/horus/tp_gt911.h +++ b/radio/src/targets/horus/tp_gt911.h @@ -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