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

fix(hal): Inherit from Stream instead of HardwareSerial across all supported targets #44

Merged
merged 6 commits into from
Oct 21, 2023

Conversation

ZZ-Cat
Copy link
Owner

@ZZ-Cat ZZ-Cat commented Oct 18, 2023

Overview

Fixes #42.
This is a case of that one line of code causing such a big problem.
I honestly thought this was going to take a lot longer to fix. But, nope. All it was, was simply one line of code in my Hardware Abstraction Layer.

Anyway... this Pull Request refactors the DevBoards class to inherit from Arduino's Stream class instead of the HardwareSerial class.

This, in future may also help reduce some of the restrictions around hardware compatibility, and reduce the need for me to add in niche code in the Hardware Abstraction Layer that is bespoke to a specific board.

You can now compile CRSF for Arduino for your Arduino Zero and/or any of your Arduino MKR series of development boards with impunity.

Additional

Please note that the version date has changed.
This is the old version date:
Screenshot 2023-10-22 110349

This is the new version date for the upcoming Version 0.5.0:
Screenshot 2023-10-22 110411

When Version 0.5.0 is released, I highly recommend you update your source code of CRSF for Arduino to this version, as it will bring in critical fixes, plus new hardware targets.

@ZZ-Cat ZZ-Cat linked an issue Oct 18, 2023 that may be closed by this pull request
1 task
@ZZ-Cat ZZ-Cat self-assigned this Oct 18, 2023
@ZZ-Cat ZZ-Cat added Bug Fix 👋💥🐞 Bug meet swatter! 🚨 Blocks Release 🚨 No release is to be made, until this is resolved. Compiler 💻 This happens during compiling/building/verifying Arduino IDE ♾️ This is specific to the Arduino IDE PlatformIO 👽 This is specific to PlatformIO. ...in progress 🚧 Development on this is in progress labels Oct 18, 2023
@ZZ-Cat ZZ-Cat added this to the Version 0.5.0 milestone Oct 18, 2023
@ZZ-Cat ZZ-Cat merged commit eaa5e80 into Main-Trunk Oct 21, 2023
4 checks passed
@ZZ-Cat ZZ-Cat deleted the ZZ-Cat/issue42 branch October 21, 2023 22:14
@ZZ-Cat ZZ-Cat removed the ...in progress 🚧 Development on this is in progress label Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arduino IDE ♾️ This is specific to the Arduino IDE 🚨 Blocks Release 🚨 No release is to be made, until this is resolved. Bug Fix 👋💥🐞 Bug meet swatter! Compiler 💻 This happens during compiling/building/verifying PlatformIO 👽 This is specific to PlatformIO.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiling fails for the Arduino Zero and entire Arduino MKR series boards
1 participant