]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
lufa: Fix for UART debug print
authortmk <hasu@tmk-kbd.com>
Fri, 26 Apr 2019 00:17:50 +0000 (09:17 +0900)
committertmk <hasu@tmk-kbd.com>
Mon, 6 May 2019 15:07:19 +0000 (00:07 +0900)
tmk_core/protocol/lufa/lufa.c

index 400011d18df6722f8c6e6d39e1e2f6736d666452..eade7d1b7638e161b0d8154d01c983f0f70915d5 100644 (file)
@@ -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();
     }