lvgl / lv_drivers

TFT and touch pad drivers for LVGL embedded GUI library
https://docs.lvgl.io/master/porting/index.html
MIT License
290 stars 309 forks source link

Build of C++ user code fails when attempting to pass xpt2046_read as indev read_cb #289

Closed johnauld closed 10 months ago

johnauld commented 10 months ago

LVGL seems to have recently changed the calling convention for an input device driver's read callback. Previously the callback returned bool to indicate whether it should be called again; now the callback's return type is void, and it sets a flag in place of the old return value.

xpt2048_read has not been updated to reflect this change, breaking code that attempts to pass this function as the read callback (warning when compiled as C; error when compiled as C++).