Closed ghost closed 6 years ago
The read() call will block until data is ready, we need to use select() to go to non-blocking so that we can disable access if the card is removed.
read()
select()
Done. There are parameters for the timeout and a retry count. The current total card timeout (application level) is ~5 seconds, with 10 retries in that time.
The
read()
call will block until data is ready, we need to useselect()
to go to non-blocking so that we can disable access if the card is removed.