google / u2f-ref-code

U2F reference implementations
BSD 3-Clause "New" or "Revised" License
588 stars 182 forks source link

Clarification needed test_Lock() HID test. #142

Open harshaintc opened 7 years ago

harshaintc commented 7 years ago

` void test_Lock() { U2FHID_FRAME f, r; uint64_t t = 0; U2Fob_deltaTime(&t); uint8_t caps = test_BasicInit();

`

Can someone explain us whats the role of test_BasicInit() in this. If the device has been already initialized in the previous test cases then why make one more call?

Lock being a optional command why should one has to go through the initialization again ?