xsns_82_wiegand - fix for zero key if keypad is used in the single key mode (SetOption124 1)

This commit is contained in:
David Stein 2021-08-24 15:54:02 +02:00
parent e3189842a9
commit 75d259a77e
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ void Wiegand::ScanForTag() {
for (int i= 0; i < WIEGAND_RFID_ARRAY_SIZE; i++)
{
if (rfid_found[i].RFID != 0) {
if (rfid_found[i].RFID != 0 || (rfid_found[i].RFID == 0 && i == 0)) {
uint64_t oldTag = rfid;
bool validKey = WiegandConversion(rfid_found[i].RFID, rfid_found[i].bitCount);
#if (DEV_WIEGAND_TEST_MODE)>0