This repository was archived by the owner on Jan 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments