sf1 / go-card

PC/SC client written in Go. Currently not maintained
MIT License
41 stars 23 forks source link

high cpu usage in WaitForCardPresent #3

Closed mrfelfel closed 5 years ago

mrfelfel commented 5 years ago

in WaitForCardPresent function for first card cpu usage is 12%

example

in my example

after than read first card , cpu usage is not high

why ?

sf1 commented 5 years ago

I reproduced the problem and commited a fix. Thanks for reporting.

sf1 commented 5 years ago

I also added a new method called reader.WaitUntilCardRemoved. See the updated atr example here

mrfelfel commented 5 years ago

tnx