Fix(driver) GT911 update for lvgl v8

This commit is contained in:
fvanroie 2021-07-17 18:09:07 +02:00
parent 2f23f5b017
commit 50a1e38698

View File

@ -55,9 +55,6 @@ IRAM_ATTR void touch_read(lv_indev_drv_t* indev_driver, lv_indev_data_t* data)
} }
touch.loop(); // reset IRQ touch.loop(); // reset IRQ
/*Return `false` because we are not buffering and no more data to read*/
return false;
} }
namespace dev { namespace dev {
@ -65,9 +62,9 @@ namespace dev {
class TouchGt911 : public BaseTouch { class TouchGt911 : public BaseTouch {
public: public:
IRAM_ATTR bool read(lv_indev_drv_t* indev_driver, lv_indev_data_t* data) IRAM_ATTR void read(lv_indev_drv_t* indev_driver, lv_indev_data_t* data)
{ {
return touch_read(indev_driver, data); touch_read(indev_driver, data);
} }
void init(int w, int h) void init(int w, int h)