diff options
Diffstat (limited to 'quantum/split_common/split_util.c')
| -rw-r--r-- | quantum/split_common/split_util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c index 9e75e19ce..8d414f6fe 100644 --- a/quantum/split_common/split_util.c +++ b/quantum/split_common/split_util.c | |||
| @@ -77,7 +77,11 @@ __attribute__((weak)) bool is_keyboard_left(void) { | |||
| 77 | #if defined(SPLIT_HAND_PIN) | 77 | #if defined(SPLIT_HAND_PIN) |
| 78 | // Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand | 78 | // Test pin SPLIT_HAND_PIN for High/Low, if low it's right hand |
| 79 | setPinInput(SPLIT_HAND_PIN); | 79 | setPinInput(SPLIT_HAND_PIN); |
| 80 | # ifdef SPLIT_HAND_PIN_LOW_IS_LEFT | ||
| 81 | return !readPin(SPLIT_HAND_PIN); | ||
| 82 | # else | ||
| 80 | return readPin(SPLIT_HAND_PIN); | 83 | return readPin(SPLIT_HAND_PIN); |
| 84 | # endif | ||
| 81 | #elif defined(SPLIT_HAND_MATRIX_GRID) | 85 | #elif defined(SPLIT_HAND_MATRIX_GRID) |
| 82 | # ifdef SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT | 86 | # ifdef SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT |
| 83 | return peek_matrix_intersection(SPLIT_HAND_MATRIX_GRID); | 87 | return peek_matrix_intersection(SPLIT_HAND_MATRIX_GRID); |
| @@ -102,7 +106,7 @@ __attribute__((weak)) bool is_keyboard_master(void) { | |||
| 102 | 106 | ||
| 103 | // Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow | 107 | // Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow |
| 104 | if (usbstate == SLAVE) { | 108 | if (usbstate == SLAVE) { |
| 105 | usb_disable(); | 109 | usb_disconnect(); |
| 106 | } | 110 | } |
| 107 | } | 111 | } |
| 108 | 112 | ||
