diff --git a/lib/python/qmk/cli/generate/keyboard_c.py b/lib/python/qmk/cli/generate/keyboard_c.py index 7f74eb9b42e..c03c569c163 100755 --- a/lib/python/qmk/cli/generate/keyboard_c.py +++ b/lib/python/qmk/cli/generate/keyboard_c.py @@ -15,6 +15,7 @@ def _gen_led_config(info_data): cols = info_data['matrix_size']['cols'] rows = info_data['matrix_size']['rows'] + led_config = None if 'layout' in info_data.get('rgb_matrix', {}): led_config = info_data['rgb_matrix']['layout'] elif 'layout' in info_data.get('led_matrix', {}):