Fix processing of RGB keycodes on slave half (#7404)
authorJoel Challis <git@zvecr.com>
Thu, 28 Nov 2019 21:59:14 +0000 (21:59 +0000)
committerGitHub <noreply@github.com>
Thu, 28 Nov 2019 21:59:14 +0000 (21:59 +0000)
keyboards/crkbd/rev1/split_util.c

index c0d44af29433c7abc38c7c353f308075ec9d3915..35aa54d78078e3574b5a0665e85ebc845a8871d5 100644 (file)
@@ -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();
-}