From f3533a0d1250ce1b733b9565ea8ecea4d9a0cc13 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sat, 26 Sep 2020 12:48:47 +0200 Subject: [PATCH] fix Atmega*U2 compile without USB OTG register --- quantum/split_common/split_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c index 90735eda4423..e8e944d710a2 100644 --- a/quantum/split_common/split_util.c +++ b/quantum/split_common/split_util.c @@ -72,7 +72,7 @@ bool usbIsActive(void) { return false; } -#elif defined(PROTOCOL_LUFA) +#elif defined(PROTOCOL_LUFA) && defined(OTGPADE) static inline bool usbIsActive(void) { USB_OTGPAD_On(); // enables VBUS pad wait_us(5);