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

feat: wifi power-save mode #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ForsakenHarmony
Copy link
Contributor

No description provided.

@ForsakenHarmony ForsakenHarmony marked this pull request as ready for review October 26, 2021 02:32
@@ -828,7 +851,7 @@ impl Drop for EspWifi {
fn drop(&mut self) {
unsafe {
TAKEN.lock(|taken| {
self.clear_all().unwrap();
// self.clear_all().unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Forgotten debugging code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

most likely, I think I ran into a crash related to this, but I don't remember for sure

@@ -301,6 +320,10 @@ impl EspWifi {
Ok(wifi)
}

pub fn set_power_save_mode(&mut self, mode: PowerSaveMode) -> Result<(), EspError> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just for symmetry, perhaps implement also get_power_safe_mode?

@ivmarkov ivmarkov force-pushed the master branch 3 times, most recently from 8a8adba to 5ccb542 Compare July 5, 2023 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants