-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Rework of arduino compatibility in WiFiSTAClass::config #4145
Conversation
No idea why the diff took the entire function. |
Fixes #4114 |
Going to do another iteration of this, after discussion with @d-a-v . |
@d-a-v I may have this wrong, but the check we discussed seems to give false positives. The first part of the check calculates that both IP and gateway are in the same subnet for both possible argument orders.
The second part of the check was to figure out what to do:
However, consider this example:
If the arguments are given in ESP order:
In which case the check can't tell which order was used. If the above is correct, then I think it'd be better to stick with this PR as it is. |
You are damn right. The test I proposed is not sufficient. |
No description provided.