mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Fix(driver) GT911 update for lvgl v8
This commit is contained in:
parent
2f23f5b017
commit
50a1e38698
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user