Skip to content

Commit b3515c4

Browse files
authored
Merge pull request #86 from ropg/fix_for_v7
disp_spi.c: Now works with v7 and v8
2 parents 8f1370d + 8f66127 commit b3515c4

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)