summaryrefslogtreecommitdiff
path: root/lib/python/qmk/cli
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-11-05 08:08:52 +1100
committerGitHub <noreply@github.com>2021-11-05 08:08:52 +1100
commit94018367278f44fcf3eab8a86525f2b257ecf4ba (patch)
treec926797b833b2c51f3b458bd0726944b21fdf0a8 /lib/python/qmk/cli
parent45a8176e325130775b51058199e69aa8f06c88cc (diff)
downloadqmk_firmware-94018367278f44fcf3eab8a86525f2b257ecf4ba.tar.gz
qmk_firmware-94018367278f44fcf3eab8a86525f2b257ecf4ba.zip
Map `PRODUCT` define to `keyboard_name` (#14372)
* Map `PRODUCT` define to `keyboard_name` * Fix tests * Fix last test
Diffstat (limited to 'lib/python/qmk/cli')
-rw-r--r--lib/python/qmk/cli/generate/dfu_header.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/generate/dfu_header.py b/lib/python/qmk/cli/generate/dfu_header.py
index 5a1b109f1e..7fb585fc7d 100644
--- a/lib/python/qmk/cli/generate/dfu_header.py
+++ b/lib/python/qmk/cli/generate/dfu_header.py
@@ -32,7 +32,7 @@ def generate_dfu_header(cli):
keyboard_h_lines = ['/* This file was generated by `qmk generate-dfu-header`. Do not edit or copy.', ' */', '', '#pragma once']
keyboard_h_lines.append(f'#define MANUFACTURER {kb_info_json["manufacturer"]}')
- keyboard_h_lines.append(f'#define PRODUCT {cli.config.generate_dfu_header.keyboard} Bootloader')
+ keyboard_h_lines.append(f'#define PRODUCT {kb_info_json["keyboard_name"]} Bootloader')
# Optional
if 'qmk_lufa_bootloader.esc_output' in kb_info_json: