Added SYNC command.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
0be497e713
commit
799733203b
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ int driver_process_usb_packet(uint16_t read) {
|
|||
sleep_ms(1000); //For blinking the device during 1 seg
|
||||
hid_write(64);
|
||||
}
|
||||
else if (u2f_req->init.cmd == U2FHID_PING) {
|
||||
else if (u2f_req->init.cmd == U2FHID_PING || u2f_req->init.cmd == U2FHID_SYNC) {
|
||||
u2f_resp = (U2FHID_FRAME *)usb_get_tx();
|
||||
memcpy(u2f_resp, u2f_req, sizeof(U2FHID_FRAME));
|
||||
hid_write(64);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue