]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
rename I2C_MASTER_RIGHT to MASTER_RIGHT since this works for serial as well
authorJimmy Chan <jchan@linkedin.com>
Mon, 6 Feb 2017 18:03:48 +0000 (10:03 -0800)
committerJimmy Chan <jchan@linkedin.com>
Tue, 7 Feb 2017 20:36:52 +0000 (12:36 -0800)
keyboards/lets_split/keymaps/i2c/config.h
keyboards/lets_split/keymaps/serial/config.h
keyboards/lets_split/readme.md
keyboards/lets_split/split_util.c

index 332c990fc5eb35bc342d15905c487a225909b285..013542731e04e4b3eb1ce4c924eb6723aa88b093 100644 (file)
@@ -16,8 +16,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 #define USE_I2C
 
-#define I2C_MASTER_LEFT
-// #define I2C_MASTER_RIGHT
+#define MASTER_LEFT
+// #define _MASTER_RIGHT
+// #define EE_HANDS
 
 #ifdef SUBPROJECT_rev1
     #include "../../rev1/config.h"
@@ -27,4 +28,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #endif
 #ifdef SUBPROJECT_rev2fliphalf
        #include "../../rev2fliphalf/config.h"
-#endif
\ No newline at end of file
+#endif
index 753f422dd842d8c3d4caf3efaab11bdb97a3dfc3..ba271d1ac6c47f640a99b83f2f6bead5e7e779a8 100644 (file)
@@ -18,6 +18,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define USE_SERIAL
 
+#define MASTER_LEFT
+// #define _MASTER_RIGHT
 // #define EE_HANDS
 
 
index 0e903065e227e03f73a2fd9900865ca7891b2d30..ecce3f4152cf1b39498370f4cab51077fbffd48c 100644 (file)
@@ -123,12 +123,12 @@ The EEPROM approach requires additional setup (flashing the eeeprom) but allows
 The USB cable approach is easier to setup and if you just want the usb cable on the left board, you do not need to do anything extra.
 
 ### Setting the left hand as master
-If you always plug the usb cable into the left board, nothing extra is needed as this is the default. Comment out `EE_HANDS` and comment out `I2C_MASTER_RIGHT` if for some reason it was set.
+If you always plug the usb cable into the left board, nothing extra is needed as this is the default. Comment out `EE_HANDS` and comment out `I2C_MASTER_RIGHT` or `MASTER_RIGHT` if for some reason it was set.
 
 ### Setting the right hand as master
 If you always plug the usb cable into the right board, add an extra flag to your `config.h`
 ```
- #define I2C_MASTER_RIGHT
+ #define MASTER_RIGHT
 ```
 
 ### Setting EE_hands to use either hands as master
index 461921798f912215ac8b48173e424c9e641d39bd..226dc1881631003342c2f0874d968ef352a62908 100644 (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();