mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 10:39:09 +00:00
Fix processing of RGB keycodes on slave half (#7404)
This commit is contained in:
parent
235da6973d
commit
99f3321e26
1 changed files with 3 additions and 8 deletions
|
@ -48,13 +48,13 @@ __attribute__((weak)) bool is_keyboard_left(void) {
|
|||
#elif defined(EE_HANDS)
|
||||
return eeconfig_read_handedness();
|
||||
#elif defined(MASTER_RIGHT)
|
||||
return !is_keyboard_master();
|
||||
return !has_usb();
|
||||
#endif
|
||||
|
||||
return is_keyboard_master();
|
||||
return has_usb();
|
||||
}
|
||||
|
||||
__attribute__((weak)) bool is_keyboard_master(void) {
|
||||
__attribute__((weak)) bool has_usb(void) {
|
||||
static enum { UNKNOWN, MASTER, SLAVE } usbstate = UNKNOWN;
|
||||
|
||||
// only check once, as this is called often
|
||||
|
@ -103,8 +103,3 @@ void split_keyboard_setup(void) {
|
|||
}
|
||||
sei();
|
||||
}
|
||||
|
||||
// backwards compat
|
||||
bool has_usb(void) {
|
||||
return is_keyboard_master();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue