diff options
author | Zach White <skullydazed@gmail.com> | 2021-01-06 10:13:25 -0800 |
---|---|---|
committer | Zach White <skullydazed@drpepper.org> | 2021-01-07 21:21:12 -0800 |
commit | 9a178f6826a30007f84983daf1c87ded1525c9cd (patch) | |
tree | 133e8f8f7ee6a8638c1e2f4d6524022fb1a6240d /lib/python | |
parent | 56ef80216ae4c67e2a70857c61d1e62eec1ab380 (diff) | |
download | qmk_firmware-9a178f6826a30007f84983daf1c87ded1525c9cd.tar.gz qmk_firmware-9a178f6826a30007f84983daf1c87ded1525c9cd.zip |
fix rgblight properties
Diffstat (limited to 'lib/python')
-rwxr-xr-x | lib/python/qmk/cli/generate/config_h.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/qmk/cli/generate/config_h.py b/lib/python/qmk/cli/generate/config_h.py index 09aa0041f..15d4fbf2d 100755 --- a/lib/python/qmk/cli/generate/config_h.py +++ b/lib/python/qmk/cli/generate/config_h.py | |||
@@ -173,9 +173,9 @@ def rgblight(config): | |||
173 | for json_key, config_key in rgblight_properties.items(): | 173 | for json_key, config_key in rgblight_properties.items(): |
174 | if json_key in config: | 174 | if json_key in config: |
175 | rgblight_config.append('') | 175 | rgblight_config.append('') |
176 | rgblight_config.append('#ifndef %s' % (config_key,)) | 176 | rgblight_config.append('#ifndef %s' % (config_key[0],)) |
177 | rgblight_config.append('# define %s %s' % (config_key, config[json_key])) | 177 | rgblight_config.append('# define %s %s' % (config_key[0], config[json_key])) |
178 | rgblight_config.append('#endif // %s' % (config_key,)) | 178 | rgblight_config.append('#endif // %s' % (config_key[0],)) |
179 | 179 | ||
180 | for json_key, config_key in rgblight_toggles.items(): | 180 | for json_key, config_key in rgblight_toggles.items(): |
181 | if config.get(json_key): | 181 | if config.get(json_key): |