-
Notifications
You must be signed in to change notification settings - Fork 85
SerialUSB issue with non-SparkFun SAMD boards #107
Comments
Hi Adam, |
The change I've made replaces lines 79-82 in the header file with:
|
Hi Paul, This branch looks to compile properly for the Adafruit M0 Adalogger. Thanks for the quick fix! Most users of SparkFun SAMD-based boards, including myself, have likely gotten into the habit of adding an extra #define Serial SerialUSB line at the top of their code. This is a nice way to avoid having to do so, but I'm wondering if it might be better suited to the actual board definitions, as opposed to a single library. I've never fully understood why this extra step is necessary for SparkFun SAMD boards, and not others. Cheers, |
Thanks Adam,
Cheers, |
Hi Paul, I would vote to merge the new change if you're confident the nested #if statements will correctly target only SparkFun boards and set #define Serial SerialUSB. Otherwise, I'd suggest deleting lines 79-82 and letting users of SparkFun SAMD-based boards carry on life as normal with manually needing to define SerialUSB (this is mentioned specifically in the Hookup Guides). Cheers, |
Subject of the issue
All code examples fail to compile when using an Adafruit M0 based microcontroller.
Your workbench
Steps to reproduce
Expected behavior
Actual behavior
Solution
The text was updated successfully, but these errors were encountered: