ATrappmann / PN5180-Library

PN5180 library for Arduino
GNU Lesser General Public License v2.1
104 stars 92 forks source link

Detecting module not connected #41

Open jpellat opened 2 years ago

jpellat commented 2 years ago

Hello, I observed that when the reset command is called upon a PN5180ISO15693 instance, if the module is not connected, the code falls into an infinite loop, concretely in the transceiveCommand function waiting for a HIGH value in the busy pin. I was wondering if there's any way to detect if the device is not connected without falling into an infinite loop and, in the case of not being implemented, if that's a pull request that could interest this repository.

Thanks a lot for maintaining this library and make it open source.

Jordi