diff options
author | QMK Bot <hello@qmk.fm> | 2021-06-26 10:49:16 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-06-26 10:49:16 +0000 |
commit | 5489c47a273f33e005f0b99a2205b181cb3d90ed (patch) | |
tree | e999ffe0f81aed8235231f36bbf5d06a525c6b52 | |
parent | 298b3831263b318ee19d58f3bea4bf14142557cd (diff) | |
parent | c232882fda0669e28312446feac3cadb254962e8 (diff) | |
download | qmk_firmware-5489c47a273f33e005f0b99a2205b181cb3d90ed.tar.gz qmk_firmware-5489c47a273f33e005f0b99a2205b181cb3d90ed.zip |
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r-- | tmk_core/common/chibios/chibios_config.h | 4 | ||||
-rw-r--r-- | tmk_core/common/usb_util.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tmk_core/common/chibios/chibios_config.h b/tmk_core/common/chibios/chibios_config.h index 1d8ace495..23c65f942 100644 --- a/tmk_core/common/chibios/chibios_config.h +++ b/tmk_core/common/chibios/chibios_config.h | |||
@@ -15,7 +15,9 @@ | |||
15 | */ | 15 | */ |
16 | #pragma once | 16 | #pragma once |
17 | 17 | ||
18 | #define SPLIT_USB_DETECT // Force this on for now | 18 | #ifndef USB_VBUS_PIN |
19 | # define SPLIT_USB_DETECT // Force this on when dedicated pin is not used | ||
20 | #endif | ||
19 | 21 | ||
20 | #if defined(STM32F1XX) | 22 | #if defined(STM32F1XX) |
21 | # define USE_GPIOV1 | 23 | # define USE_GPIOV1 |
diff --git a/tmk_core/common/usb_util.c b/tmk_core/common/usb_util.c index e4c50fcb1..d4134a044 100644 --- a/tmk_core/common/usb_util.c +++ b/tmk_core/common/usb_util.c | |||
@@ -13,8 +13,8 @@ | |||
13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | #include "quantum.h" | ||
16 | #include "usb_util.h" | 17 | #include "usb_util.h" |
17 | #include "wait.h" | ||
18 | 18 | ||
19 | __attribute__((weak)) void usb_disable(void) {} | 19 | __attribute__((weak)) void usb_disable(void) {} |
20 | __attribute__((weak)) bool usb_connected_state(void) { return true; } | 20 | __attribute__((weak)) bool usb_connected_state(void) { return true; } |