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 LoadProhibited when using SoftwareSerial in a funky way. #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Idorobots
Copy link

Hey, I ran into a slight initialization issue when when running ZE27-O3 in my project:

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

I narrowed it down to the setStream() call entering the wrong case (as if HW serial was used when in actuality it was SW serial) and performing an invalid load (most likely a null-ish pointer dereference). It was a pretty easy fix - just initializing the HW and SW internal variables to nullptr so that we make sure only the right one is non-null. Tested it with both ZE25 and ZE27 libs (looks like it's the same code really 🤷).
Haven't changed the other sensors setup.

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