1
0
Fork 0

Compensate timer during prower down

This commit is contained in:
tmk 2014-11-26 11:25:45 +09:00
parent 10a6b2c7d8
commit 05795cb003
6 changed files with 27 additions and 15 deletions

View file

@ -587,7 +587,7 @@ int main(void)
print("Keyboard start.\n");
while (1) {
while (USB_DeviceState == DEVICE_STATE_Suspended) {
suspend_power_down(WDTO_120MS);
suspend_power_down();
if (USB_Device_RemoteWakeupEnabled && suspend_wakeup_condition()) {
USB_Device_SendRemoteWakeup();
}