summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-02-28 09:33:33 +1100
committerGitHub <noreply@github.com>2021-02-28 09:33:33 +1100
commit66237441723b8dcaae50230257b2bf6efaea9292 (patch)
treef0839fe9e764dbd3ae91f48c50c21b5f854559a3
parente2d3cefc953045cd4abe5e3d1d2fc8c7c3062375 (diff)
Fix build for attiny85-based boards. (#12044)
-rw-r--r--tmk_core/protocol/vusb/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmk_core/protocol/vusb/main.c b/tmk_core/protocol/vusb/main.c
index 4095979e93..4d7be51e41 100644
--- a/tmk_core/protocol/vusb/main.c
+++ b/tmk_core/protocol/vusb/main.c
@@ -82,6 +82,7 @@ static void vusb_suspend(void) {
suspend_power_down();
}
+#if USB_COUNT_SOF
static void vusb_wakeup(void) {
vusb_suspended = false;
suspend_wakeup_init();
@@ -90,6 +91,7 @@ static void vusb_wakeup(void) {
sleep_led_disable();
#endif
}
+#endif
/** \brief Setup USB
*