I'm getting this error when I try to use modifier keys on my rotary encoder like so:
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(QK_LCTL | KC_F24);
} else {
tap_code(QK_LCTL | KC_F23);
}
}
return false;
}
This is the error:
Compiling: keyboards/planck/keymaps/dawz/keymap.c keyboards/planck/keymaps/dawz/keymap.c: In function 'encoder_update_user':
keyboards/planck/keymaps/dawz/keymap.c:68:22: error: unsigned conversion from 'int' to 'uint8_t' {aka 'unsigned char'} changes value from '371' to '115' [-Werror=overflow]
68 | tap_code(QK_LCTL | KC_F24);
| ^~~~~~~~~~~~~~~~
keyboards/planck/keymaps/dawz/keymap.c:70:22: error: unsigned conversion from 'int' to 'uint8_t' {aka 'unsigned char'} changes value from '370' to '114' [-Werror=overflow]
70 | tap_code(QK_LCTL | KC_F23);
| ^~~~~~~~~~~~~~~~
cc1.exe: all warnings being treated as errors
[ERRORS]
|
|
|
make[1]: *** [tmk_core/rules.mk:443: .build/obj_planck_rev6_drop_dawz/keyboards/planck/keymaps/dawz/keymap.o] Error 1
Make finished with errors
make: *** [Makefile:539: planck/rev6_drop:dawz] Error 1
The encoder works when I put in a regular keycode like KC_VOLUP or KC_VOLDOWN, but Iām trying to use Ctrl + F23, F24, so I can use the knob as a Voicemeeter macro buttons controller.