Skip to content

feat: optionally set a different default Arduino stream#26

Open
pillo79 wants to merge 1 commit intohideakitai:mainfrom
pillo79:default_stream
Open

feat: optionally set a different default Arduino stream#26
pillo79 wants to merge 1 commit intohideakitai:mainfrom
pillo79:default_stream

Conversation

@pillo79
Copy link

@pillo79 pillo79 commented Mar 4, 2026

To support the Arduino UNO Q use cases, it is important to avoid accessing the Serial object from this library.

This PR allows the user to set the default stream to something else, such as Serial1 or Serial2, by defining DEBUGLOG_DEFAULT_ARDUINO_STREAM before including the library. This change is backward compatible, as the default will still be Serial if the macro is not defined.

To support the Arduino UNO Q it is important to avoid accessing the
'Serial' object from this library. This commit allows the user to set
the default stream to something else, such as 'Serial1' or 'Serial2', by
defining 'DEBUGLOG_DEFAULT_ARDUINO_STREAM' before including the library.
This change is backward compatible, as the default will still be
'Serial' if the macro is not defined.

Signed-off-by: Luca Burelli <l.burelli@arduino.cc>
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

Successfully merging this pull request may close these issues.

1 participant