Fix linking error with custom names.

This commit is contained in:
Pascal Getreuer
2025-01-21 16:35:53 -08:00
parent bee18247f5
commit 45f573f335
4 changed files with 11 additions and 7 deletions
+2 -1
View File
@@ -78,7 +78,8 @@ Many common QMK keycodes are recognized by `get_keycode_string()`, but not all.
Optionally, `keycode_string_names_user` may be defined to add names for additional keycodes. For example, supposing keymap.c defines `MYMACRO1` and `MYMACRO2` as custom keycodes, the following adds their names:
```c
const keycode_string_name_t keycode_string_names_user[] = {
const keycode_string_name_t *keycode_string_names_user =
(keycode_string_name_t []){
KEYCODE_STRING_NAME(MYMACRO1),
KEYCODE_STRING_NAME(MYMACRO2),
KEYCODE_STRING_NAMES_END // End of table sentinel.