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();