From bc468bf06319b5e16fe7bd0e739a280391ed1e6d Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Mon, 30 Oct 2023 16:20:21 +0100 Subject: [PATCH] full --- src/main.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 43947dd..fdccd76 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -77,13 +77,7 @@ void setup() { void loop() { - - #ifdef LOCAL_ACL - #ifdef SERIAL_ACL - checkSerialCommand(); - #endif - #endif - + // Check if new data is available if (newDataAvailable) { newDataAvailable = false; @@ -96,6 +90,7 @@ void loop() { uint64_t facilityID = (cardData >> 17) & 0xFFFF; uint64_t cardID = (cardData >> 1) & 0xFFFF; + #ifdef DEBUG Serial.print("Facility ID (Decimal): "); Serial.println(facilityID); Serial.print("Facility ID (Binary): "); @@ -110,10 +105,10 @@ void loop() { Serial.println(cardData, BIN); Serial.print("Total Bits Received: "); Serial.println(bitCount); + #endif String fullCardID = String(facilityID)+":"+String(cardID); - - Serial.print("Full Card (Tinance2): "); + Serial.print("FULL-CARD-ID:"); Serial.println(fullCardID);