summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-04-07 13:08:43 +0000
committerQMK Bot <hello@qmk.fm>2023-04-07 13:08:43 +0000
commit4aa2cd45a1b2a8978291f1584e19edf55585ae02 (patch)
tree6dd7e0e22ccce911f5cf1f9c67c2bcb80e872ca0 /lib
parent369c5a213dc4cf805b7dd2e2393901b33e67e500 (diff)
parente9b36bebb2b6e4fa3c10da8b7b072f766dce49a5 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib')
-rwxr-xr-xlib/python/qmk/cli/generate/config_h.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/generate/config_h.py b/lib/python/qmk/cli/generate/config_h.py
index c256ec4531..64d4db6ffe 100755
--- a/lib/python/qmk/cli/generate/config_h.py
+++ b/lib/python/qmk/cli/generate/config_h.py
@@ -119,7 +119,9 @@ def generate_encoder_config(encoder_json, config_h_lines, postfix=''):
config_h_lines.append(generate_define(f'ENCODERS_PAD_B{postfix}', f'{{ {", ".join(b_pads)} }}'))
if None in resolutions:
- cli.log.debug("Unable to generate ENCODER_RESOLUTION configuration")
+ cli.log.debug(f"Unable to generate ENCODER_RESOLUTION{postfix} configuration")
+ elif len(resolutions) == 0:
+ cli.log.debug(f"Skipping ENCODER_RESOLUTION{postfix} configuration")
elif len(set(resolutions)) == 1:
config_h_lines.append(generate_define(f'ENCODER_RESOLUTION{postfix}', resolutions[0]))
else: