From 38d48ab0e432d428b0f0852a9e3518cc047d104c Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Fri, 29 Nov 2019 21:22:35 +0100 Subject: [PATCH] Controller: Only read sector 1 from RFID cards. That's big enough and much faster. --- src/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.cpp b/src/controller.cpp index 49cc747..5a30cbb 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -199,7 +199,7 @@ String Controller::_read_rfid_data() { case MFRC522::PICC_TYPE_MIFARE_4K: sectors = 40; break; default: INFO("Unknown PICC type %s\n", String(MFRC522::PICC_GetTypeName(type)).c_str()); } - + sectors = 2; // Pretend we have only two sectors, so we read only sector #1. int good_key_index = -1; for (uint8_t sector=1; sector