Merge pull request #12960 from Fires04/development

xsns_82_wiegand - fix for zero key if keypad is used in the single ke…
This commit is contained in:
Theo Arends 2021-08-24 20:52:19 +02:00 committed by GitHub
commit 3bae28a9f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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++) 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; uint64_t oldTag = rfid;
bool validKey = WiegandConversion(rfid_found[i].RFID, rfid_found[i].bitCount); bool validKey = WiegandConversion(rfid_found[i].RFID, rfid_found[i].bitCount);
#if (DEV_WIEGAND_TEST_MODE)>0 #if (DEV_WIEGAND_TEST_MODE)>0