Fix codegen for non led boards

This commit is contained in:
zvecr 2022-03-27 15:26:48 +01:00
parent 13ee88dd21
commit a65ea1a711

View File

@ -15,6 +15,7 @@ def _gen_led_config(info_data):
cols = info_data['matrix_size']['cols'] cols = info_data['matrix_size']['cols']
rows = info_data['matrix_size']['rows'] rows = info_data['matrix_size']['rows']
led_config = None
if 'layout' in info_data.get('rgb_matrix', {}): if 'layout' in info_data.get('rgb_matrix', {}):
led_config = info_data['rgb_matrix']['layout'] led_config = info_data['rgb_matrix']['layout']
elif 'layout' in info_data.get('led_matrix', {}): elif 'layout' in info_data.get('led_matrix', {}):