This commit is contained in:
Matthew Frost 2023-10-30 16:20:21 +01:00
parent 3df7a96b12
commit bc468bf063

View file

@ -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);