diff options
Diffstat (limited to 'quantum/split_common')
| -rw-r--r-- | quantum/split_common/post_config.h | 2 | ||||
| -rw-r--r-- | quantum/split_common/split_util.c | 6 | ||||
| -rw-r--r-- | quantum/split_common/transport.c | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/quantum/split_common/post_config.h b/quantum/split_common/post_config.h index 5c0b414fb..4ae1d5273 100644 --- a/quantum/split_common/post_config.h +++ b/quantum/split_common/post_config.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #if defined(USE_I2C) || defined(EH) | 1 | #if defined(USE_I2C) |
| 2 | // When using I2C, using rgblight implicitly involves split support. | 2 | // When using I2C, using rgblight implicitly involves split support. |
| 3 | # if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_SPLIT) | 3 | # if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_SPLIT) |
| 4 | # define RGBLIGHT_SPLIT | 4 | # define RGBLIGHT_SPLIT |
diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c index 5c548de05..076f18664 100644 --- a/quantum/split_common/split_util.c +++ b/quantum/split_common/split_util.c | |||
| @@ -33,9 +33,11 @@ bool waitForUsb(void) { | |||
| 33 | wait_ms(100); | 33 | wait_ms(100); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | #if defined(__AVR__) | ||
| 37 | // Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow | 36 | // Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow |
| 37 | #if defined(__AVR__) | ||
| 38 | (USBCON &= ~(_BV(USBE) | _BV(OTGPADE))); | 38 | (USBCON &= ~(_BV(USBE) | _BV(OTGPADE))); |
| 39 | #else | ||
| 40 | usbStop(&USBD1); | ||
| 39 | #endif | 41 | #endif |
| 40 | 42 | ||
| 41 | return false; | 43 | return false; |
| @@ -76,7 +78,7 @@ __attribute__((weak)) bool is_keyboard_master(void) { | |||
| 76 | } | 78 | } |
| 77 | 79 | ||
| 78 | static void keyboard_master_setup(void) { | 80 | static void keyboard_master_setup(void) { |
| 79 | #if defined(USE_I2C) || defined(EH) | 81 | #if defined(USE_I2C) |
| 80 | # ifdef SSD1306OLED | 82 | # ifdef SSD1306OLED |
| 81 | matrix_master_OLED_init(); | 83 | matrix_master_OLED_init(); |
| 82 | # endif | 84 | # endif |
diff --git a/quantum/split_common/transport.c b/quantum/split_common/transport.c index 3c783dc56..ab421adc4 100644 --- a/quantum/split_common/transport.c +++ b/quantum/split_common/transport.c | |||
| @@ -21,7 +21,7 @@ static pin_t encoders_pad[] = ENCODERS_PAD_A; | |||
| 21 | # define NUMBER_OF_ENCODERS (sizeof(encoders_pad) / sizeof(pin_t)) | 21 | # define NUMBER_OF_ENCODERS (sizeof(encoders_pad) / sizeof(pin_t)) |
| 22 | #endif | 22 | #endif |
| 23 | 23 | ||
| 24 | #if defined(USE_I2C) || defined(EH) | 24 | #if defined(USE_I2C) |
| 25 | 25 | ||
| 26 | # include "i2c_master.h" | 26 | # include "i2c_master.h" |
| 27 | # include "i2c_slave.h" | 27 | # include "i2c_slave.h" |
