fixup! refacto
This commit is contained in:
parent
6cbe39dca9
commit
7cb87c895b
1 changed files with 1 additions and 2 deletions
|
|
@ -73,12 +73,11 @@ void setup() {
|
||||||
while (!Serial) delay(10);
|
while (!Serial) delay(10);
|
||||||
|
|
||||||
pinMode(RC522_POWER_PIN, OUTPUT);
|
pinMode(RC522_POWER_PIN, OUTPUT);
|
||||||
|
digitalWrite(RC522_POWER_PIN, HIGH);
|
||||||
reader.PCD_Init(); // Init each MFRC522 card.
|
reader.PCD_Init(); // Init each MFRC522 card.
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
digitalWrite(RC522_POWER_PIN, HIGH);
|
|
||||||
|
|
||||||
if (reader.PICC_IsNewCardPresent() && reader.PICC_ReadCardSerial()) {
|
if (reader.PICC_IsNewCardPresent() && reader.PICC_ReadCardSerial()) {
|
||||||
char reader_uid[32] = "";
|
char reader_uid[32] = "";
|
||||||
readCard(reader_uid);
|
readCard(reader_uid);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue