mirror of https://github.com/arendst/Tasmota.git
xsns_82_wiegand - fix for zero key if keypad is used in the single key mode (SetOption124 1)
This commit is contained in:
parent
e3189842a9
commit
75d259a77e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue