Revert "replace #define by constexpr"

This reverts commit a1d0a1313d.
This commit is contained in:
Rotzbua
2018-10-04 12:54:33 +02:00
parent e1b5c1dafa
commit 4623434bea
15 changed files with 42 additions and 42 deletions

View File

@@ -26,13 +26,13 @@
#include <SPI.h>
#include <MFRC522.h>
constexpr uint8_t RST_PIN = 9; // Configurable, see typical pin layout above
constexpr uint8_t SS_PIN = 10; // Configurable, see typical pin layout above
#define RST_PIN 9 // Configurable, see typical pin layout above
#define SS_PIN 10 // Configurable, see typical pin layout above
MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance
/* Set your new UID here! */
byte newUid[] = {0xDE, 0xAD, 0xBE, 0xEF};
#define NEW_UID {0xDE, 0xAD, 0xBE, 0xEF}
MFRC522::MIFARE_Key key;
@@ -92,6 +92,7 @@ void loop() {
// }
// Set new UID
byte newUid[] = NEW_UID;
if ( mfrc522.MIFARE_SetUid(newUid, (byte)4, true) ) {
Serial.println(F("Wrote new UID to card."));
}