Make sure to turn off LED soon.

This commit is contained in:
NIIBE Yutaka
2017-11-17 16:22:02 +09:00
parent d54712c04c
commit ce82b347f9
2 changed files with 2 additions and 0 deletions

View File

@@ -1653,6 +1653,7 @@ usb_event_handle (struct usb_dev *dev)
case USB_EVENT_DEVICE_SUSPEND:
led_blink (LED_OFF);
chopstx_usec_wait (10); /* Make sure LED off */
random_fini ();
chopstx_conf_idle (2);
bDeviceState |= USB_DEVICE_STATE_SUSPEND;