fix(driver) Compiler errors

This commit is contained in:
fvanroie 2021-07-17 17:04:09 +02:00
parent 9b17008739
commit 6fd9811e77
2 changed files with 2 additions and 5 deletions

View File

@ -46,9 +46,6 @@ IRAM_ATTR void touch_read(lv_indev_drv_t* indev_driver, lv_indev_data_t* data)
} else { } else {
data->state = LV_INDEV_STATE_REL; data->state = LV_INDEV_STATE_REL;
} }
/*Return `false` because we are not buffering and no more data to read*/
return false;
} }
static inline void FT6336U_drv_init() static inline void FT6336U_drv_init()

View File

@ -188,8 +188,8 @@ void guiSetup()
static lv_disp_drv_t disp_drv; static lv_disp_drv_t disp_drv;
lv_disp_drv_init(&disp_drv); lv_disp_drv_init(&disp_drv);
disp_drv.buffer = &disp_buf; disp_drv.draw_buf = &disp_buf;
disp_drv->flush_cb = gui_flush_cb; disp_drv.flush_cb = gui_flush_cb;
if(gui_settings.rotation % 2) { if(gui_settings.rotation % 2) {
disp_drv.hor_res = tft_height; disp_drv.hor_res = tft_height;