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

Mpu6050 usermod crash fix #4048

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

willmmiles
Copy link
Collaborator

Fix a newbie mistake: avoid reconfiguring the device during web server context, which can trigger a yield() during the I2C operations. Instead defer the device initialization to a loop() call.

Avoid reconfiguring the device during web server context, which can
trigger a yield().  Instead defer the device initialization to loop().
@blazoncek blazoncek merged commit 4ab2c90 into Aircoookie:0_15 Jul 10, 2024
18 checks passed
@willmmiles willmmiles deleted the mpu6050-crash-fix branch July 14, 2024 15:39
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.

2 participants