We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef66463 commit d4e18fbCopy full SHA for d4e18fb
sys/auto_init/screen/auto_init_lvgl.c
@@ -50,6 +50,10 @@ void auto_init_lvgl(void)
50
/* Only a single screen is supported by lvgl */
51
#if !IS_USED(MODULE_LV_DRIVERS_SDL)
52
disp_dev_reg_t *disp_dev = disp_dev_reg_find_screen(CONFIG_LVGL_SCREEN_DEFAULT);
53
+ if (disp_dev == NULL) {
54
+ puts("[auto_init_screen] error: no display device found\n");
55
+ return;
56
+ }
57
s_screen.display = disp_dev->dev;
58
#endif
59
0 commit comments