This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
SerialUSB issue with non-SparkFun SAMD boards #107
Closed
Description
Subject of the issue
All code examples fail to compile when using an Adafruit M0 based microcontroller.
Your workbench
- What development board or microcontroller are you using?
- Adafruit Adalogger M0
Steps to reproduce
- Compile code with Adafruit Feather M0 board definition selected.
Expected behavior
- Code compiles as normal.
Actual behavior
/Arduino/libraries/SparkFun_Ublox_Arduino_Library/src/SparkFun_Ublox_Arduino_Library.h:81:16: error: 'SerialUSB' was not declared in this scope
#define Serial SerialUSB
Solution
- Remove lines 79-82 introduced in v1.8.0.
// Define Serial for SparkFun SAMD based boards.
#if defined(ARDUINO_ARCH_SAMD)
#define Serial SerialUSB
#endif
Metadata
Metadata
Assignees
Labels
No labels