aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/lets_split/split_util.c
diff options
context:
space:
mode:
authorGravatar Jack Humbert <jack.humb@gmail.com>2016-07-05 23:40:54 -0400
committerGravatar Jack Humbert <jack.humb@gmail.com>2016-07-05 23:40:54 -0400
commitce01f88c43adef9344727998f53bb1cf74913f65 (patch)
tree04383fda1ca95a43ccacb482ef258a481f190f28 /keyboards/lets_split/split_util.c
parentd707738616c140f8d9c8eded7b64e5fc806f4b24 (diff)
downloadqmk_firmware-ce01f88c43adef9344727998f53bb1cf74913f65.tar.gz
images, docks, clean-up [skip ci]
Diffstat (limited to 'keyboards/lets_split/split_util.c')
-rw-r--r--keyboards/lets_split/split_util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/lets_split/split_util.c b/keyboards/lets_split/split_util.c
index c394596e0..65003a71a 100644
--- a/keyboards/lets_split/split_util.c
+++ b/keyboards/lets_split/split_util.c
@@ -7,13 +7,22 @@
#include "split_util.h"
#include "matrix.h"
#include "i2c.h"
+#include "serial.h"
#include "keyboard.h"
#include "config.h"
volatile bool isLeftHand = true;
static void setup_handedness(void) {
+ #ifdef EE_HANDS
isLeftHand = eeprom_read_byte(EECONFIG_HANDEDNESS);
+ #else
+ #ifdef I2C_MASTER_RIGHT
+ isLeftHand = !has_usb();
+ #else
+ isLeftHand = has_usb();
+ #endif
+ #endif
}
static void keyboard_master_setup(void) {