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

esp32s2: Ensure proper wifi_disconnect and reset #3783

Closed
wants to merge 2 commits into from

Conversation

BennyE
Copy link

@BennyE BennyE commented Dec 2, 2020

This should fix #3743

@BennyE
Copy link
Author

BennyE commented Dec 2, 2020

I have to add that I tested this just with a code that runs some i2c and has "import wifi". I didn't have time to test this longer and some additional fixes might be necessary.

Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

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

I didn't get a chance to test this for myself, but it seems like a good find and extremely plausible as a reason for problems subsequent to importing wifi. Thank you!

@jepler
Copy link
Member

jepler commented Dec 3, 2020

The single CI failure can be ignored.

@BennyE
Copy link
Author

BennyE commented Dec 3, 2020

I didn't get a chance to test this for myself, but it seems like a good find and extremely plausible as a reason for problems subsequent to importing wifi. Thank you!

Hi @jepler , thanks for your review and positive comment. I tried this briefly with a "real wifi setup" and I ran into a backtrace. I'll look into this during my evening (writing this post during my lunch break). Please don't merge yet, I should have done this as a draft and was overly excited & confident. I'll get back to you all later today.

@skieast
Copy link

skieast commented Dec 3, 2020

Yes. Was playing with that as well. Some esp32 forum idf comments have pointed to similar issues with making sure that disconnect is finished. Cant test until later as I'm mostly skiing in the mornings here. :) My various experiments fixed the CTRL-C CTRL-D issue but broke the wifi. Meaning i would get a core panic and backtrace.

@tannewt tannewt marked this pull request as draft December 4, 2020 01:42
@BennyE
Copy link
Author

BennyE commented Dec 9, 2020

#3803 fixes what this pull request was meant for. Thank you, Bruce! :)

@BennyE BennyE closed this Dec 9, 2020
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.

ESP32S2 hangs when interrupting running code that includes I2C object
3 participants