leosac / access-control

Leosac Access Control - Open Source Physical Access Control System
https://leosac.com
GNU Affero General Public License v3.0
240 stars 40 forks source link

Add Wiegand AUTODETECT nowait flag #117

Closed knight-of-ni closed 3 years ago

knight-of-ni commented 6 years ago

Per design, the Wiegand module AUTODETECT mode waits ~2 seconds after a card read, to give the cardholder a chance to enter his/her pin.

This PR allows the sys admin to optionally set <nowait>true</nowait>. With this flag enabled, card reads are processed immediately without a delay. Naturally, it is not possible to enter a pin code following a card read with this flag enabled, but some will consider this a fair trade off.

I am currently testing this feature on my Pi Zero and it is working as expected.

I do not currently understand how odb builds schema files from the code (seems like pure magic) so please let me know if I have overlooked something related to that.

Maxhy commented 3 years ago

Finally reviewed. It is good improvement and well developed, thanks @knight-of-ni :)