From 292cc939ec6bea70c4d9b7b2130c35efd1545fe8 Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 26 Apr 2019 09:17:50 +0900 Subject: [PATCH] lufa: Fix for UART debug print --- tmk_core/protocol/lufa/lufa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 400011d1..eade7d1b 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -713,7 +713,10 @@ void hook_usb_suspend_entry(void) __attribute__((weak)) void hook_usb_suspend_loop(void) { +#ifndef LUFA_DEBUG_UART + // This corrupts debug print when suspend suspend_power_down(); +#endif if (USB_Device_RemoteWakeupEnabled && suspend_wakeup_condition()) { USB_Device_SendRemoteWakeup(); } -- 2.46.2