Skip to content

Commit

Permalink
Merge pull request #430 from gunadai/main
Browse files Browse the repository at this point in the history
pointer fix for gt911_touchscreen.c
  • Loading branch information
bwhitman authored Dec 8, 2024
2 parents 1bcea7c + 712294d commit 4e6501c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tulip/esp32s3/gt911_touchscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ void run_gt911(void *param) {
last_touch_y[i] = (touch_y[i] + touch_y_delta)*touch_y_scale;
#endif
}
for(uint8_t i=touch_cnt;i<3;i++) {
last_touch_x[i] = -1;
last_touch_y[i] = -1;
}
//fprintf(stderr, "touch DOWN %d %d\n", last_touch_x[0], last_touch_y[0]);
send_touch_to_micropython(last_touch_x[0], last_touch_y[0], 0);
gt911_held = 1;
Expand Down

0 comments on commit 4e6501c

Please sign in to comment.