Update utils.py

This commit is contained in:
Alex Muthmann
2019-10-25 12:25:42 +02:00
committed by GitHub
parent cb6365b9f2
commit c6c2e0e7ce

View File

@ -85,6 +85,9 @@ def load_config(args):
elif config['ui']['display']['type'] in ('ws_27inch', 'ws27inch', 'waveshare_27inch', 'waveshare27inch'): elif config['ui']['display']['type'] in ('ws_27inch', 'ws27inch', 'waveshare_27inch', 'waveshare27inch'):
config['ui']['display']['type'] = 'waveshare27inch' config['ui']['display']['type'] = 'waveshare27inch'
elif config['ui']['display']['type'] in ('lcdhat'):
config['ui']['display']['type'] = 'lcdhat'
else: else:
print("unsupported display type %s" % config['ui']['display']['type']) print("unsupported display type %s" % config['ui']['display']['type'])
exit(1) exit(1)