Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Supporting the NO_GLOBAL_SERIAL global definition#30

Open
leifclaesson wants to merge 2 commits intobakercp:master from
leifclaesson:master
Open

Supporting the NO_GLOBAL_SERIAL global definition #30
leifclaesson wants to merge 2 commits intobakercp:master from
leifclaesson:master

Conversation

@leifclaesson
Copy link

@leifclaesson leifclaesson commented Sep 26, 2022
edited
Loading

NO_GLOBAL_SERIAL

..is a global definition on the ESP32 Arduino platform which skips defining the Serial, Serial1 and Serial2 objects, leaving the user free to define these themselves. This is a great way of ensuring no other library uses a Serial port for anything we don't want it to, as it immediately generates a compile error.

Unfortunately the legacy begin() function is one of those functions that reference the global Serial object.
So, I forked and added an #if defined(NO_GLOBAL_SERIAL) block inside the legacy begin() function so that PacketSerial is aware of this flag and does not try to link against the Serial object that doesn't exist. That's the only change I've made. The library itself works beautifully, very useful, thank you for making it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@bakercp bakercp Awaiting requested review from bakercp bakercp is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /