in case you use an unsupported display it will default to dummy display, displaying nothing

Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-03-22 19:09:27 +01:00
parent 8dcae13ce9
commit c4c4d6c417

View File

@ -456,8 +456,8 @@ def load_config(args):
config['ui']['display']['type'] = 'weact2in9' config['ui']['display']['type'] = 'weact2in9'
else: else:
print("unsupported display type %s" % config['ui']['display']['type']) logging.debug("using dummy display, as your display type is unsupported")
sys.exit(1) config['ui']['display']['type'] = 'dummydisplay'
return config return config