Make sure to turn off LED on suspend.
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
2017-11-16 NIIBE Yutaka <gniibe@fsij.org>
|
2017-11-16 NIIBE Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
* src/usb-ccid.c (ccid_thread): Use constant pointer for
|
* src/gnuk.h (LED_OFF): New.
|
||||||
chopstx_poll.
|
|
||||||
|
* src/usb-ccid.c (usb_event_handle): LED off on sleep.
|
||||||
|
(ccid_thread): Use constant pointer for chopstx_poll.
|
||||||
(poll_event_intr): Remove.
|
(poll_event_intr): Remove.
|
||||||
|
|
||||||
2017-11-15 NIIBE Yutaka <gniibe@fsij.org>
|
2017-11-15 NIIBE Yutaka <gniibe@fsij.org>
|
||||||
|
|||||||
2
chopstx
2
chopstx
Submodule chopstx updated: 3552fc5615...b34b9b6440
@@ -434,6 +434,7 @@ extern const uint8_t gnuk_string_serial[];
|
|||||||
#define LED_GNUK_EXEC 32
|
#define LED_GNUK_EXEC 32
|
||||||
#define LED_START_COMMAND 64
|
#define LED_START_COMMAND 64
|
||||||
#define LED_FINISH_COMMAND 128
|
#define LED_FINISH_COMMAND 128
|
||||||
|
#define LED_OFF LED_FINISH_COMMAND
|
||||||
void led_blink (int spec);
|
void led_blink (int spec);
|
||||||
|
|
||||||
#if defined(PINPAD_SUPPORT)
|
#if defined(PINPAD_SUPPORT)
|
||||||
|
|||||||
@@ -1648,6 +1648,7 @@ usb_event_handle (struct usb_dev *dev)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case USB_EVENT_DEVICE_SUSPEND:
|
case USB_EVENT_DEVICE_SUSPEND:
|
||||||
|
led_blink (LED_OFF);
|
||||||
chopstx_conf_idle (1);
|
chopstx_conf_idle (1);
|
||||||
bDeviceState |= USB_DEVICE_STATE_SUSPEND;
|
bDeviceState |= USB_DEVICE_STATE_SUSPEND;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user