Blink LED rapidly when asking ACK from user.

This commit is contained in:
NIIBE Yutaka
2018-09-27 12:58:06 +09:00
parent ba750d153d
commit 4c6511231c
6 changed files with 40 additions and 5 deletions

View File

@@ -29,6 +29,10 @@
#include "config.h"
#ifdef ACKBTN_SUPPORT
#include <contrib/ackbtn.h>
#endif
#ifdef DEBUG
#include "usb-cdc.h"
#include "debug.h"
@@ -1844,6 +1848,7 @@ ccid_thread (void *arg)
if (c->ccid_state == CCID_STATE_EXECUTE)
{
ackbtn_enable ();
led_blink (LED_WAIT_FOR_BUTTON);
c->ccid_state = CCID_STATE_CONFIRM_ACK;
}
else