adafruit / Adafruit-Fingerprint-Sensor-Library

Arduino library for interfacing to the fingerprint sensor in the Adafruit shop
http://www.adafruit.com/products/751
Other
417 stars 340 forks source link

Library not suitable for asynchronous aplications #125

Open ardumiguel opened 1 year ago

ardumiguel commented 1 year ago

This library uses "delay();" internally at some point of the code so it makes it not suitable for asynchronous projects where millis are used to time the commands.

Any fix possible?

caternuson commented 10 months ago

Can try removing them. The delay() call in begin() is probably some legacy thing, and even if needed could be dealt with in user code. The delay() call in getStructuredPacket() just helps with the ready wait loop.