Merge pull request #86 from ropg/fix_for_v7

disp_spi.c: Now works with v7 and v8
This commit is contained in:
Carlos Diaz 2021-07-08 16:37:56 -05:00 committed by GitHub
commit b3515c4832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {