Skip to content

Commit 8f66127

Browse files
committed
Make it work with v7 and v8
Makes the change from #83 dependent on major version number so things work with v7 and v8.
1 parent 8f1370d commit 8f66127

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lvgl_tft/disp_spi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,12 @@ static void IRAM_ATTR spi_ready(spi_transaction_t *trans)
310310
disp = lv_refr_get_disp_refreshing();
311311
#endif
312312

313+
#if LVGL_VERSION_MAJOR < 8
314+
lv_disp_flush_ready(&disp->driver);
315+
#else
313316
lv_disp_flush_ready(disp->driver);
317+
#endif
318+
314319
}
315320

316321
if (chained_post_cb) {

0 commit comments

Comments
 (0)