From dbfa7e34b753efc95bd4a3f65780b0848af4cf29 Mon Sep 17 00:00:00 2001 From: fvanroie Date: Wed, 6 Jan 2021 00:00:52 +0100 Subject: [PATCH] Fix gt911 driver --- src/drv/hasp_drv_gt911.cpp | 2 +- src/drv/hasp_drv_gt911.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drv/hasp_drv_gt911.cpp b/src/drv/hasp_drv_gt911.cpp index 00c17c72..bd14cc46 100644 --- a/src/drv/hasp_drv_gt911.cpp +++ b/src/drv/hasp_drv_gt911.cpp @@ -27,7 +27,7 @@ void IRAM_ATTR GT911_setXY(int8_t contacts, GTPoint * points) } // Read touch points from global variable -bool IRAM_ATTR GT911_getXY(uint16_t * touchX, uint16_t * touchY, bool debug) +bool IRAM_ATTR GT911_getXY(int16_t * touchX, int16_t * touchY, bool debug) { static GTPoint points[5]; int16_t contacts = touch.readInput((uint8_t *)&points); diff --git a/src/drv/hasp_drv_gt911.h b/src/drv/hasp_drv_gt911.h index 32789eb6..d1c4e8cb 100644 --- a/src/drv/hasp_drv_gt911.h +++ b/src/drv/hasp_drv_gt911.h @@ -8,7 +8,7 @@ #include "hasp_debug.h" // for TAG_DRVR -bool IRAM_ATTR GT911_getXY(uint16_t * touchX, uint16_t * touchY, bool debug); +bool IRAM_ATTR GT911_getXY(int16_t * touchX, int16_t * touchY, bool debug); void GT911_init(); void IRAM_ATTR GT911_loop();