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

stop lwIP dhcp client when WiFi goes off. #5703

Merged
merged 2 commits into from
Feb 1, 2019
Merged

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Feb 1, 2019

fix #5667

Bug is reproduced
This patch stops dhcp client when WiFi goes off,
dhcp client was anyway started by firmware when WiFi goes on.

Thanks @dalbert2

edit: bug no more appearing

@d-a-v d-a-v added this to the 2.5.0 milestone Feb 1, 2019
@d-a-v d-a-v changed the title stop lwIP dhcp client with WiFi goes off. stop lwIP dhcp client when WiFi goes off. Feb 1, 2019
@@ -389,6 +389,11 @@ bool ESP8266WiFiGenericClass::mode(WiFiMode_t m) {

bool ret = false;

if (m == WIFI_OFF)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of testing for OFF, should this be testing for !STA && !STA_AP?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

!STA && !STA_AP == OFF || AP, so yes it is better.

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.

Exception 0 in LWIP2 on DHCP renew with WIFI_OFF
2 participants