mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-06-06 16:32:49 +00:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
5cd0dafc7f
@ -613,11 +613,15 @@ def _extract_led_config(info_data, keyboard):
|
|||||||
cols = info_data['matrix_size']['cols']
|
cols = info_data['matrix_size']['cols']
|
||||||
rows = info_data['matrix_size']['rows']
|
rows = info_data['matrix_size']['rows']
|
||||||
|
|
||||||
# Assume what feature owns g_led_config
|
# Determine what feature owns g_led_config
|
||||||
|
features = info_data.get("features", {})
|
||||||
|
feature = None
|
||||||
|
if features.get("rgb_matrix", False):
|
||||||
feature = "rgb_matrix"
|
feature = "rgb_matrix"
|
||||||
if info_data.get("features", {}).get("led_matrix", False):
|
elif features.get("led_matrix", False):
|
||||||
feature = "led_matrix"
|
feature = "led_matrix"
|
||||||
|
|
||||||
|
if feature:
|
||||||
# Process
|
# Process
|
||||||
for file in find_keyboard_c(keyboard):
|
for file in find_keyboard_c(keyboard):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user