rename I2C_MASTER_RIGHT to MASTER_RIGHT since this works for serial as well

This commit is contained in:
Jimmy Chan 2017-02-06 10:03:48 -08:00
parent 048ef311dc
commit 56d2198b3d
4 changed files with 10 additions and 6 deletions

View file

@ -21,7 +21,8 @@ static void setup_handedness(void) {
#ifdef EE_HANDS
isLeftHand = eeprom_read_byte(EECONFIG_HANDEDNESS);
#else
#ifdef I2C_MASTER_RIGHT
// I2C_MASTER_RIGHT is deprecated use MASTER_RIGHT instead since this works for both serial and i2c
#if defined(I2C_MASTER_RIGHT) || defined(MASTER_RIGHT)
isLeftHand = !has_usb();
#else
isLeftHand = has_usb();