gl-sergei / u2f-token

u2f token firmware for stm32f103 and efm32hg boards
GNU General Public License v3.0
348 stars 57 forks source link

Incorrect SET_IDLE handling #3

Closed gl-sergei closed 6 years ago

gl-sergei commented 6 years ago

It doesn't cause any issues, but still needs to be fixed. The code

https://github.com/gl-sergei/u2f-token/blob/871eb2f506e44f1140241e894dd5fff1f755bad8/u2f/usb-hid.c#L240-L241

expecting SET_IDLE rate value to come in a data packet, but in fact it comes in a high byte of wValue.