mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-03-03 18:30:57 +00:00
Merge remote-tracking branch 'origin/develop' into xap
This commit is contained in:
commit
9115ddfedb
@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"keyboard_name": "Onekey Blackpill STM32F401 TinyUF2",
|
"keyboard_name": "Onekey Blackpill STM32F401 TinyUF2",
|
||||||
"processor": "STM32F401",
|
"development_board": "blackpill_f401",
|
||||||
"bootloader": "tinyuf2",
|
"bootloader": "tinyuf2",
|
||||||
"board": "BLACKPILL_STM32_F401",
|
|
||||||
"matrix_pins": {
|
"matrix_pins": {
|
||||||
"cols": ["B0"],
|
"cols": ["B0"],
|
||||||
"rows": ["A7"]
|
"rows": ["A7"]
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"keyboard_name": "Onekey Blackpill STM32F411 TinyUF2",
|
"keyboard_name": "Onekey Blackpill STM32F411 TinyUF2",
|
||||||
"processor": "STM32F411",
|
"development_board": "blackpill_f411",
|
||||||
"bootloader": "tinyuf2",
|
"bootloader": "tinyuf2",
|
||||||
"board": "BLACKPILL_STM32_F411",
|
|
||||||
"matrix_pins": {
|
"matrix_pins": {
|
||||||
"cols": ["B0"],
|
"cols": ["B0"],
|
||||||
"rows": ["A7"]
|
"rows": ["A7"]
|
||||||
|
@ -561,8 +561,16 @@ def _process_defaults(info_data):
|
|||||||
for default_type in defaults_map.keys():
|
for default_type in defaults_map.keys():
|
||||||
thing_map = defaults_map[default_type]
|
thing_map = defaults_map[default_type]
|
||||||
if default_type in info_data:
|
if default_type in info_data:
|
||||||
for key, value in thing_map.get(info_data[default_type], {}).items():
|
merged_count = 0
|
||||||
|
thing_items = thing_map.get(info_data[default_type], {}).items()
|
||||||
|
for key, value in thing_items:
|
||||||
|
if key not in info_data:
|
||||||
info_data[key] = value
|
info_data[key] = value
|
||||||
|
merged_count += 1
|
||||||
|
|
||||||
|
if merged_count == 0 and len(thing_items) > 0:
|
||||||
|
_log_warning(info_data, 'All defaults for \'%s\' were skipped, potential redundant config or misconfiguration detected' % (default_type))
|
||||||
|
|
||||||
return info_data
|
return info_data
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user