From: tmk Date: Fri, 26 Apr 2019 00:17:50 +0000 (+0900) Subject: lufa: Fix for UART debug print X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=292cc939ec6bea70c4d9b7b2130c35efd1545fe8;p=max%2Ftmk_keyboard.git lufa: Fix for UART debug print --- 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(); }