qmk_firmware icon indicating copy to clipboard operation
qmk_firmware copied to clipboard

The keyboard name cannot be set to F12, the compilation can pass normally, but the computer recognizes it as a string of messy letters

Open jeromeli002 opened this issue 2 years ago • 2 comments

The keyboard name cannot be set to F12, the compilation can pass normally, but the computer recognizes it as a string of messy letters 键盘名字不能设置F12,编译能正常通过,但是电脑识别出来是一串乱七八糟的字母

jeromeli002 avatar May 11 '22 08:05 jeromeli002

This is a known issue, it has to do with how the USB manufacturer and product strings are defined in the config, as bare text:

#define MANUFACTURER Keyboard Maker
#define PRODUCT Keyboard Name

rather than string literals:

#define MANUFACTURER "Keyboard Maker"
#define PRODUCT "Keyboard Name"

Which means the preprocessor will try to evaluate it and potentially mangle the result. Fixing this is on my todo list but it involves touching pretty much every keyboard in the repo at the same time as changing the core code that deals with these defines, so it may take some time.

fauxpark avatar May 11 '22 11:05 fauxpark

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs. For maintainers: Please label with bug, in progress, on hold, discussion or to do to prevent the issue from being re-flagged.

github-actions[bot] avatar Sep 06 '22 02:09 github-actions[bot]

This has been fixed in the develop branch.

fauxpark avatar Sep 26 '22 05:09 fauxpark