Skip to content

Commit

Permalink
fixed wrong my_touchpad_read
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausMu committed Dec 24, 2024
1 parent e6fa163 commit aca6d00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Platformio/hardware/ESP32/boardtest/main_boardtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static void my_disp_flush( lv_display_t *disp, const lv_area_t *area, uint8_t *p
}

// Read the touchpad
void my_touchpad_read(lv_indev_drv_t * indev_driver, lv_indev_data_t * data) {
static void my_touchpad_read(lv_indev_t *indev_driver, lv_indev_data_t *data) {
uint16_t x, y;
if (tft.getTouch(&x, &y)) {
data->state = LV_INDEV_STATE_PRESSED;
Expand Down
2 changes: 1 addition & 1 deletion Platformio/hardware/ESP32/lvgl_hal_esp32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void my_disp_flush( lv_display_t *disp, const lv_area_t *area, uint8_t *p
}

// Read the touchpad
void my_touchpad_read(lv_indev_drv_t * indev_driver, lv_indev_data_t * data) {
static void my_touchpad_read(lv_indev_t *indev_driver, lv_indev_data_t *data) {
uint16_t x, y;
if (tft.getTouch(&x, &y)) {
data->state = LV_INDEV_STATE_PRESSED;
Expand Down

0 comments on commit aca6d00

Please sign in to comment.