Make sure to turn off LED on suspend.

This commit is contained in:
NIIBE Yutaka
2017-11-16 13:08:00 +09:00
parent d4c9d6653b
commit 21a481060c
4 changed files with 7 additions and 3 deletions

View File

@@ -1648,6 +1648,7 @@ usb_event_handle (struct usb_dev *dev)
break;
case USB_EVENT_DEVICE_SUSPEND:
led_blink (LED_OFF);
chopstx_conf_idle (1);
bDeviceState |= USB_DEVICE_STATE_SUSPEND;
break;