Skip to content
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
@adamgarbo

Description

@adamgarbo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions