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 for failed g-sensor #1698

Merged

Conversation

pkendall64
Copy link
Collaborator

If the g-sensor fails (as they do) then we shouldn't be trying to read from it anymore as it has a huge timeout and the entire module becomes unusable!

This fix is to check the status of the g-sensor on startup and remember if it's ok and only use it if it was deemed to be working at initialisation time. i.e. if we managed to read a valid chip-id.

@pkendall64 pkendall64 added bug 🐛 Something isn't working V3.1 🤔 V3.0 🚀 and removed V3.1 🤔 labels Jul 18, 2022
@pkendall64
Copy link
Collaborator Author

I found the underlying cause of my problem #1700.
I think this PR is still valid, but I think it could wait for 3.1 now.

@JyeSmith
Copy link
Member

@pkendall64 Ill leave it to you if you want to re label this PR.

But I think it still catches a potential issue that could pop up unexpectedly.

@pkendall64
Copy link
Collaborator Author

@pkendall64 Ill leave it to you if you want to re label this PR.

But I think it still catches a potential issue that could pop up unexpectedly.

So we may as well leave it for 3.0 then

@pkendall64 pkendall64 merged commit 2edda66 into ExpressLRS:3.x.x-maintenance Jul 19, 2022
@pkendall64 pkendall64 deleted the fix-for-failed-gsensor branch July 21, 2022 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working V3.0 🚀
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants