<div dir="ltr"><div><div>Are you trying to detect insertion and removal only? AFAIK you have to ignore lower than dwEventState & 0xFFFF0000<br></div>I dont know PY, but declaring variables inside loops isnt a great idea on C/C++ :P<br><br></div><div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 16, 2014 at 10:01 PM, Martin Paljak <span dir="ltr"><<a href="mailto:martin@martinpaljak.net" target="_blank">martin@martinpaljak.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">(original message eaten because paste bin links are not liked)<br>
<br>
On Tue, Sep 16, 2014 at 2:41 PM, Ludovic Rousseau<br>
<<a href="mailto:ludovic.rousseau@gmail.com">ludovic.rousseau@gmail.com</a>> wrote:<br>
><br>
output from python test (with time.sleep() added) here:<br>
<a href="http://paste" target="_blank">http://paste</a><no space here><a href="http://bin.com/MBKCg8rD" target="_blank">bin.com/MBKCg8rD</a><br>
output from pcscd -a -d -f: <a href="http://paste" target="_blank">http://paste</a><no space here><a href="http://bin.com/4PGskdV0" target="_blank">bin.com/4PGskdV0</a><br>
<br>
The issue is quite obviously non-blocking behaviour but why doesn't it<br>
work out of the box?<br>
<span class=""><br>
> What smart card reader are you using?<br>
</span>Omnikey 1021 and SCR3500. On debian i386 and raspberry.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Pcsclite-muscle mailing list<br>
<a href="mailto:Pcsclite-muscle@lists.alioth.debian.org">Pcsclite-muscle@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pcsclite-muscle</a><br>
</div></div></blockquote></div><br></div>