From 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Mon, 26 Oct 2015 14:49:46 -0400 Subject: quantum separated --- protocol/lufa/lufa.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'protocol/lufa') diff --git a/protocol/lufa/lufa.c b/protocol/lufa/lufa.c index c9504483af..d310d4b807 100644 --- a/protocol/lufa/lufa.c +++ b/protocol/lufa/lufa.c @@ -908,13 +908,16 @@ int main(void) print("Keyboard start.\n"); while (1) { - // while (USB_DeviceState == DEVICE_STATE_Suspended) { - // print("[s]"); - // suspend_power_down(); - // if (USB_Device_RemoteWakeupEnabled && suspend_wakeup_condition()) { - // USB_Device_SendRemoteWakeup(); - // } - // } + +#ifndef BLUETOOTH_ENABLE + while (USB_DeviceState == DEVICE_STATE_Suspended) { + print("[s]"); + suspend_power_down(); + if (USB_Device_RemoteWakeupEnabled && suspend_wakeup_condition()) { + USB_Device_SendRemoteWakeup(); + } + } +#endif #ifdef MIDI_ENABLE midi_device_process(&midi_device); -- cgit v1.2.3