Skip to content

Change SoftwareSerial to inherit from Stream #64

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

Merged
merged 1 commit into from
Sep 26, 2019
Merged

Conversation

nseidle
Copy link
Member

@nseidle nseidle commented Sep 24, 2019

Change SS to inherit from Stream instead of Print. There are some libraries that expect softwareSerial to have functions like find() and setTimeout(). This fixes those 'function not found' errors.

Change SS to inherit from Stream instead of Print. There are some libraries that expect softwareSerial to have functions like find() and setTimeout(). This fixes those 'function not found' errors.
@oclyke
Copy link
Contributor

oclyke commented Sep 26, 2019

Looks good! Stream inherits from Print so any existing functionality should remain (relatively) unscathed, and we get more compatibility!

@oclyke oclyke merged commit 8ddcb5b into master Sep 26, 2019
@oclyke oclyke deleted the streamSoftwareSerial branch September 26, 2019 15:58
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.

None yet

2 participants