Skip to content

Commit 7586b00

Browse files
author
Kevin Townsend
committed
Fixed Uno build issue
1 parent b2e4ea8 commit 7586b00

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

examples/mifare1K_dump_serial/mifare1K_dump_serial.ino

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#include <Adafruit_MFRC630.h>
22

3+
4+
/* This example requires a second serial part, so no Uno :( */
5+
#ifndef HAVE_HWSERIAL1
6+
void setup() { Serial.begin(115200); Serial.println("This board is not supported!"); }
7+
void loop() { delay(10); }
8+
#else
9+
310
/* Indicate the pin number where PDOWN is connected. */
411
#if defined(ESP8266)
512
#define PDOWN_PIN (A0)
@@ -159,3 +166,5 @@ void loop() {
159166
digitalWrite(LED_BUILTIN, LOW);
160167
delay(500);
161168
}
169+
170+
#endif /* HAVE_HWSERIAL1 */

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit MFRC630 RFID
2-
version=1.0.0
2+
version=1.0.1
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Arduino library for I2C and SPI access to the MFRC630 RFID/Near Field Communication chip

0 commit comments

Comments
 (0)