Skip to content

Commit 452f497

Browse files
committed
Wait 200ms before actually starting the display thread
Give some time to the underlying layer to prepare the splash before trying to access it Better fix: use a semaphore TODO: there could be similar use cases when the resources that must be displayed are not yet ready. Reason: cores 2.7.x like to crash on lv_fs_res_t lv_fs_read(lv_fs_file_t * file_p, void * buf, uint32_t btr, uint32_t * br)
1 parent c05e72d commit 452f497

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Braccio++.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ void BraccioClass::lvgl_init()
409409

410410
void BraccioClass::display_thread_func()
411411
{
412+
delay(200);
412413
for(;;)
413414
{
414415
lv_task_handler();

0 commit comments

Comments
 (0)