Skip to content

Commit ca20147

Browse files
committed
Make Serial the default debug interface - for all boards except SAMD21
1 parent c70c1de commit ca20147

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SparkFun_ATECCX08a_Arduino_Library.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ class ATECCX08A {
193193
public:
194194

195195
//By default use Wire, standard I2C speed, and the default ADS1015 address
196-
#if defined(ARDUINO_ARCH_APOLLO3) || defined(ARDUINO_ARCH_ESP32) // checking which board we are using and selecting a Serial debug that will work.
197-
bool begin(uint8_t i2caddr = ATECC508A_ADDRESS_DEFAULT, TwoWire &wirePort = Wire, Stream &serialPort = Serial); // Artemis
198-
#else
196+
#if defined(ARDUINO_ARCH_SAMD) // checking which board we are using and selecting a Serial debug that will work.
199197
bool begin(uint8_t i2caddr = ATECC508A_ADDRESS_DEFAULT, TwoWire &wirePort = Wire, Stream &serialPort = SerialUSB); // SamD21 boards
198+
#else
199+
bool begin(uint8_t i2caddr = ATECC508A_ADDRESS_DEFAULT, TwoWire &wirePort = Wire, Stream &serialPort = Serial); // Artemis
200200
#endif
201201

202202
byte inputBuffer[BUFFER_SIZE]; // used to store messages received from the IC as they come in

0 commit comments

Comments
 (0)