]> err.no Git - yubikey-personalization/commit
move the sleep in yk_wait_for_status() to the top of the loop
authorKlas Lindfors <klas@yubico.com>
Tue, 17 Dec 2013 11:07:42 +0000 (12:07 +0100)
committerKlas Lindfors <klas@yubico.com>
Tue, 17 Dec 2013 11:07:42 +0000 (12:07 +0100)
commit4657e7265d8984471607baebfb3ea74b804848c9
tree1d5c492674e95e2db8fc7224c222e0d689bc06db
parent71a8b402e8e2fa8e46115f4e9e7f23db0e35d029
move the sleep in yk_wait_for_status() to the top of the loop

fixes #38
it seems there is a race if a fast computer makes control transfers
very close to each other in time, this enforces a 10ms sleep at the
start of a read.
ykcore/ykcore.c