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:
parent
8f1370d1c4
commit
8f661270be
|
@ -310,7 +310,12 @@ static void IRAM_ATTR spi_ready(spi_transaction_t *trans)
|
||||||
disp = lv_refr_get_disp_refreshing();
|
disp = lv_refr_get_disp_refreshing();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if LVGL_VERSION_MAJOR < 8
|
||||||
|
lv_disp_flush_ready(&disp->driver);
|
||||||
|
#else
|
||||||
lv_disp_flush_ready(disp->driver);
|
lv_disp_flush_ready(disp->driver);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chained_post_cb) {
|
if (chained_post_cb) {
|
||||||
|
|
Loading…
Reference in a new issue