Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BOARD_HAS_USB_SERIAL undefined for Arduino Uno #112

Open
djipco opened this issue Mar 5, 2020 · 0 comments
Open

BOARD_HAS_USB_SERIAL undefined for Arduino Uno #112

djipco opened this issue Mar 5, 2020 · 0 comments

Comments

@djipco
Copy link

djipco commented Mar 5, 2020

Maybe there's something I don't understand but shouldn't BOARD_HAS_USB_SERIAL be defined on an Arduino Uno r3?

I have this code in my library and when I run it on an Arduino Uno, SLIPEncodedSerial.h is the one that gets included. Am I missing something obvious or this is not the correct bahaviour?

#include "OSC/OSCBoards.h"
#include "OSC/OSCMessage.h"

#ifdef BOARD_HAS_USB_SERIAL
#include "OSC/SLIPEncodedUSBSerial.h"
SLIPEncodedUSBSerial SLIPSerial(thisBoardsSerialUSB);
#else
#include "OSC/SLIPEncodedSerial.h"
SLIPEncodedSerial SLIPSerial(Serial);
#endif

Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant