diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-10-26 14:49:46 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-10-26 14:49:46 -0400 |
commit | 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 (patch) | |
tree | f0b00f664ecdaf83e30f27baf20780eb5d91c39a /protocol | |
parent | ff8d8a50dfbb8502003a5181878c54a71b8c57d5 (diff) |
quantum separated
Diffstat (limited to 'protocol')
-rw-r--r-- | protocol/lufa/lufa.c | 17 |
1 files changed, 10 insertions, 7 deletions
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); |