Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

break condition ACR122_USB::targetPresent gets lost somewhere. #1

Open
tobias-strenger opened this issue Feb 13, 2020 · 0 comments
Open

Comments

@tobias-strenger
Copy link

I will probably fix this myself. Just in case you have some ideas.
In ACR122_USB::process():

while (ACR122_USB::targetPresent) {
        libusb_handle_events_timeout (usbContext, &t);  // zero timeval = return immediately (non blocking)
        usleep(100000);
}

This loop doesnt break in some cases even if the target was removed. The signal lamp on the device however, indicates, that the device itself recognize it correctly if the target was removed.

It can be reproduced by putting the target just for a short time on the device, or not even touch the device. It happens regularely.

@tobias-strenger tobias-strenger changed the title break condition ACR122_USB::targetPresent get lost somewhere. break condition ACR122_USB::targetPresent gets lost somewhere. Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant