From ff911a84d88de2b13411ed82a51a96abf8afd3a4 Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Tue, 16 Mar 2021 08:49:05 +0100 Subject: [PATCH] Added SPI-pins as default-case --- src/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0ceef3a..cdcd521 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4575,11 +4575,7 @@ void setup() { #endif #ifdef RFID_READER_TYPE_MFRC522_SPI - #if (HAL == 4) - SPI.begin(RFID_SCK, RFID_MISO, RFID_MOSI, RFID_CS); // ToDo: Not sure if this should be the default-case - #else - SPI.begin(); - #endif + SPI.begin(RFID_SCK, RFID_MISO, RFID_MOSI, RFID_CS); SPI.setFrequency(1000000); #endif