Followup for adding support for deep and light sleep #555
Followup for adding support for deep and light sleep #555fa993 wants to merge 31 commits intoesp-rs:masterfrom
Conversation
will squash later
|
Changes made:
Changes not done:
Changes that I would like to do:
|
|
If you want the CI to succeed, you might want to put #![allow(unknown_lints)]
#![allow(unexpected_cfgs)]at the top of your example. And then look at the remaining Clippy errors. But it would be good to fix the CI before requesting a review. I'll be able to review mid/late next week (on travel ATM). |
|
Yeah.. no I was wondering why the CI was failing myself, (the feature flags used weren't anything new and not present in the codebase), I'll fix the remaining errors and make sure CI is passing before the next review. |
| pub use crate::rmt_legacy::*; | ||
| } | ||
|
|
||
| #[cfg(not(feature = "riscv-ulp-hal"))] |
There was a problem hiding this comment.
This feature does not exist anymore, remove.
There was a problem hiding this comment.
Is there any other equivalent feature or should this be enabled for all modules? What would the feature be replaced by?
examples/deep_sleep.rs
Outdated
| #![allow(unknown_lints)] | ||
| #![allow(unexpected_cfgs)] | ||
|
|
||
| #[cfg(any(esp32, esp32s2, esp32s3, esp32c2, esp32c3))] |
There was a problem hiding this comment.
Careful review of all your cfgs is necessary.
There was a problem hiding this comment.
Also and in general - your examples have way too many cfgs. Look at mine as a comparison. Please simplify. This is difficult to support and reason about.
I have addressed the cfg review comments, I have a question on one of the review comments around the non-existing feature, Let me know if anything else needs to be done. Additionally, thank you for your patience. |
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo fmtcommand to ensure that all changed code is formatted correctly.cargo clippycommand to ensure that all changed code passes latest Clippy nightly lints.CHANGELOG.mdin the proper section.Pull Request Details 📖
Description
Please provide a clear and concise description of your changes, including the motivation behind these changes. The context is crucial for the reviewers.
Testing
Describe how you tested your changes.