Skip to content

Commit

Permalink
fix rgblight properties
Browse files Browse the repository at this point in the history
  • Loading branch information
skullydazed committed Jan 6, 2021
1 parent 851079f commit cb4f90a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/python/qmk/cli/generate/config_h.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ def rgblight(config):
for json_key, config_key in rgblight_properties.items():
if json_key in config:
rgblight_config.append('')
rgblight_config.append('#ifndef %s' % (config_key,))
rgblight_config.append('# define %s %s' % (config_key, config[json_key]))
rgblight_config.append('#endif // %s' % (config_key,))
rgblight_config.append('#ifndef %s' % (config_key[0],))
rgblight_config.append('# define %s %s' % (config_key[0], config[json_key]))
rgblight_config.append('#endif // %s' % (config_key[0],))

for json_key, config_key in rgblight_toggles.items():
if config.get(json_key):
Expand Down

0 comments on commit cb4f90a

Please sign in to comment.