From aca6d006bf7a90d81c27587110ebcc93657169ed Mon Sep 17 00:00:00 2001 From: KlausMu Date: Tue, 24 Dec 2024 15:32:24 +0100 Subject: [PATCH] fixed wrong my_touchpad_read --- Platformio/hardware/ESP32/boardtest/main_boardtest.cpp | 2 +- Platformio/hardware/ESP32/lvgl_hal_esp32.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Platformio/hardware/ESP32/boardtest/main_boardtest.cpp b/Platformio/hardware/ESP32/boardtest/main_boardtest.cpp index 209989b2..f7ed2a19 100644 --- a/Platformio/hardware/ESP32/boardtest/main_boardtest.cpp +++ b/Platformio/hardware/ESP32/boardtest/main_boardtest.cpp @@ -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; diff --git a/Platformio/hardware/ESP32/lvgl_hal_esp32.cpp b/Platformio/hardware/ESP32/lvgl_hal_esp32.cpp index 83080d5c..dc7124ab 100644 --- a/Platformio/hardware/ESP32/lvgl_hal_esp32.cpp +++ b/Platformio/hardware/ESP32/lvgl_hal_esp32.cpp @@ -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;