summaryrefslogtreecommitdiff
path: root/quantum/split_common/split_util.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-12-18 01:06:30 +1100
committerDrashna Jael're <drashna@live.com>2021-01-12 22:46:08 -0800
commite33afb22554ac11ae93255c8ee960810bc9bfc55 (patch)
tree69c26ae382cfdc0db3e4c67d0d0846e02605ce9a /quantum/split_common/split_util.c
parent664f5de68767ebb07417be0f7ca69c030cc10c37 (diff)
Run cformat and dos2unix manually (#11235)
Diffstat (limited to 'quantum/split_common/split_util.c')
-rw-r--r--quantum/split_common/split_util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c
index 8ccc4b71b2..575bdc0fdc 100644
--- a/quantum/split_common/split_util.c
+++ b/quantum/split_common/split_util.c
@@ -92,7 +92,7 @@ static uint8_t peek_matrix_intersection(pin_t out_pin, pin_t in_pin) {
uint8_t pin_state = readPin(in_pin);
// Set out_pin to a setting that is less susceptible to noise.
setPinInputHigh(out_pin);
- matrix_io_delay(); // Wait for the pull-up to go HIGH.
+ matrix_io_delay(); // Wait for the pull-up to go HIGH.
return pin_state;
}
#endif
@@ -103,11 +103,11 @@ __attribute__((weak)) bool is_keyboard_left(void) {
setPinInput(SPLIT_HAND_PIN);
return readPin(SPLIT_HAND_PIN);
#elif defined(SPLIT_HAND_MATRIX_GRID)
-# ifdef SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
+# ifdef SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
return peek_matrix_intersection(SPLIT_HAND_MATRIX_GRID);
-# else
+# else
return !peek_matrix_intersection(SPLIT_HAND_MATRIX_GRID);
-# endif
+# endif
#elif defined(EE_HANDS)
return eeconfig_read_handedness();
#elif defined(MASTER_RIGHT)