-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Improve ESP32 power down code #1125
Improve ESP32 power down code #1125
Conversation
Hi @josesimoes, I'm nanoFramework bot. A human will be reviewing it shortly. 😉 |
Please validate this. I added that call to |
I tried this and although code looks ok it didn't seem to work. The only change i would make is to call the nanoHAL_Uninitialize() instead of esp_wifi_stop() before the esp_deep_sleep_start() as that should stop the wifi( not sure if it does at the moment, but it should do. Can sort that out later ). The CPU_SetPowerMode(PowerLevel_type powerLevel) function doesn't get called. I added some tracing and it doesn't seem to exit the g_CLR_RT_ExecutionEngine.Execute() |
0755491
to
46527bc
Compare
@AdrianSoundy I've pushed the changes as you've suggested. It's now calling As for not going into |
Signed-off-by: José Simões <[email protected]>
46527bc
to
b5610e1
Compare
@AdrianSoundy there was a bug in the call to |
I have now tested this and it seems to be working.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist:
Signed-off-by: José Simões [email protected]