Make it work with v7 and v8

Makes the change from #83 dependent on major version number so things work with v7 and v8.
This commit is contained in:
Rop Gonggrijp 2021-07-08 18:08:29 +02:00
parent 8f1370d1c4
commit 8f661270be

View file

@ -310,7 +310,12 @@ static void IRAM_ATTR spi_ready(spi_transaction_t *trans)
disp = lv_refr_get_disp_refreshing();
#endif
#if LVGL_VERSION_MAJOR < 8
lv_disp_flush_ready(&disp->driver);
#else
lv_disp_flush_ready(disp->driver);
#endif
}
if (chained_post_cb) {