misc: do not hang if graphics backend is not available
This commit is contained in:
parent
ba3f08698e
commit
23e24f7f89
4 changed files with 38 additions and 63 deletions
|
|
@ -221,6 +221,10 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
/* Initialise display */
|
||||
lv_display_t *disp = lv_linux_fbdev_create();
|
||||
if (access("/dev/fb0", F_OK) != 0) {
|
||||
bbx_log(BBX_LOG_LEVEL_ERROR, "/dev/fb0 is not available");
|
||||
sigaction_handler(SIGTERM);
|
||||
}
|
||||
lv_linux_fbdev_set_file(disp, "/dev/fb0");
|
||||
if (conf_opts.quirks.fbdev_force_refresh) {
|
||||
lv_linux_fbdev_set_force_refresh(disp, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue