Skip to content

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