From cb18cab209fcfd22e70e7a3c5ce02065c84d983c Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Sun, 4 Jul 2021 21:59:01 +0200 Subject: [PATCH] Tiny calculation fix / bringing .de back as default-log-language --- src/RfidPn5180.cpp | 4 ++-- src/settings.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RfidPn5180.cpp b/src/RfidPn5180.cpp index 1e9fe84..b57f654 100644 --- a/src/RfidPn5180.cpp +++ b/src/RfidPn5180.cpp @@ -87,7 +87,7 @@ extern unsigned long Rfid_LastRfidCheckTimestamp; // Reset to dummy-value if no card is there // Necessary to differentiate between "card is still applied" and "card is re-applied again after removal" // lastTimeDetected14443 is used to prevent "new card detection with old card" with single events where no card was detected - if (!lastTimeDetected14443 || (lastTimeDetected14443 - millis() >= 300)) { + if (!lastTimeDetected14443 || (millis() - lastTimeDetected14443 >= 300)) { lastTimeDetected14443 = 0; for (uint8_t i=0; i= 300)) { + if (!lastTimeDetected15693 || (millis() - lastTimeDetected15693 >= 300)) { lastTimeDetected15693 = 0; for (uint8_t i=0; i