Fix gt911 driver

This commit is contained in:
fvanroie 2021-01-06 00:00:52 +01:00
parent e50cc711cb
commit dbfa7e34b7
2 changed files with 2 additions and 2 deletions

View File

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

View File

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