Renamed "hiccups" to "TSI2CEvents"

And use uint32_t for counting them.
This commit is contained in:
Raphael Coeffic
2021-07-12 08:58:54 +02:00
parent da661a6e03
commit 068c1a0f11
3 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -61,11 +61,11 @@ class RadioAnalogsDiagsWindow: public Window {
}
#if !defined(SIMU)
constexpr coord_t y1 = MENU_CONTENT_TOP + 6 * FH;
constexpr coord_t x1 = MENUS_MARGIN_LEFT;
dc->drawText(x1, y1, "Touch GT911 FW ver:");
dc->drawNumber(x1 + 150, y1, touchGT911fwver, LEFT, 4);
dc->drawText(x1 + 200, y1, "Hiccups:");
dc->drawNumber(x1 + 260, y1, touchGT911hiccups, LEFT, 5);
coord_t x1 = MENUS_MARGIN_LEFT;
x1 = dc->drawText(x1, y1, "Touch GT911 FW ver:") + 8;
x1 = dc->drawNumber(x1, y1, touchGT911fwver, LEFT, 4) + 16;
x1 = dc->drawText(x1, y1, "TSI2CEvents:") + 4;
dc->drawNumber(x1, y1, touchGT911hiccups, LEFT, 5);
#endif
#endif
};
+1 -1
View File
@@ -407,7 +407,7 @@ bool touchGT911Flag = false;
volatile static bool touchEventOccured = false;
struct TouchData touchData;
uint16_t touchGT911fwver = 0;
uint16_t touchGT911hiccups = 0;
uint32_t touchGT911hiccups = 0;
static void TOUCH_AF_ExtiStop(void)
{
+1 -1
View File
@@ -24,7 +24,7 @@
extern bool touchGT911Flag;
extern uint16_t touchGT911fwver;
extern uint16_t touchGT911hiccups;
extern uint32_t touchGT911hiccups;
extern bool touchPanelInit();
void touchPanelRead();