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

Feature/radio singletons #141

Merged
merged 4 commits into from
Mar 28, 2023
Merged

Conversation

MabezDev
Copy link
Member

@MabezDev MabezDev commented Mar 1, 2023

For some reason, the BLE example stopped working for me (at least on esp32c3), but the coex one does? I don't know why but coex will also fail if the radio::Bluetooth struct is passed via &mut, even though it shouldn't make a difference...

@bjoernQ
Copy link
Contributor

bjoernQ commented Mar 1, 2023

Just out of curiosity: does changing the opt-level change anything regarding those issues?

I know it shouldn't for RV but who knows?

@MabezDev
Copy link
Member Author

I looked into this a bit more and I was running into the issue fixed in esp-rs/esp-hal@c01317e 😆. Everything was fine after that. Sadly we need a new esp-hal release before we can merge this, so I'll keep it as draft for now.

- Uses the RADIO singletons when creating wifi/ble/esp_now
- Updates all examples to use the singletons
- Simplfy esp_now::ReceiveFuture
@MabezDev MabezDev force-pushed the feature/radio-singletons branch 3 times, most recently from 2a43025 to 4f15b0a Compare March 28, 2023 14:24
@MabezDev MabezDev marked this pull request as ready for review March 28, 2023 15:48
@MabezDev MabezDev requested a review from bjoernQ March 28, 2023 15:48
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the reappearing esp-wifi/examples/esp_now.rs this looks good to me

Please remove it before merging

Thanks!

@MabezDev MabezDev merged commit 74e9f18 into esp-rs:main Mar 28, 2023
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