Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 97bd455

Browse files
authored
Merge pull request #138 from sparkfun/MicroMod_SAMD51-Support
MicroMod SAMD51 support
2 parents 49224fa + f6044f3 commit 97bd455

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: src/SparkFun_Ublox_Arduino_Library.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,16 @@
5656
// Boards like the RedBoard Turbo use SerialUSB (not Serial).
5757
// But other boards like the SAMD51 Thing Plus use Serial (not SerialUSB).
5858
// The next nine lines let the code compile cleanly on as many SAMD boards as possible.
59-
#if defined(ARDUINO_ARCH_SAMD) // Is this a SAMD board?
60-
#if defined(USB_VID) // Is the USB Vendor ID defined?
61-
#if (USB_VID == 0x1B4F) // Is this a SparkFun board?
62-
#if !defined(ARDUINO_SAMD51_THING_PLUS) // If it is not a SAMD51 Thing Plus
63-
#define Serial SerialUSB // Define Serial as SerialUSB
59+
#if defined(ARDUINO_ARCH_SAMD) // Is this a SAMD board?
60+
#if defined(USB_VID) // Is the USB Vendor ID defined?
61+
#if (USB_VID == 0x1B4F) // Is this a SparkFun board?
62+
#if !defined(ARDUINO_SAMD51_THING_PLUS) & !defined(ARDUINO_SAMD51_MICROMOD) // If it is not a SAMD51 Thing Plus or SAMD51 MicroMod
63+
#define Serial SerialUSB // Define Serial as SerialUSB
6464
#endif
6565
#endif
6666
#endif
6767
#endif
68+
6869
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6970

7071
//Define a digital pin to aid checksum failure capture and analysis

0 commit comments

Comments
 (0)