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

Fixed broken wifi.sta.{dis,}connect() with event mon enabled. #2098

Merged
merged 1 commit into from
Oct 28, 2017

Conversation

jmattsson
Copy link
Member

  • This PR is for the dev branch rather than for master.
  • This PR is compliant with the other contributing guidelines as well (if not, please describe why).
  • I have thoroughly tested my contribution.
  • [n/a] The code changes are reflected in the documentation at docs/en/*.

I discovered the hard way that wifi.sta.disconnect() and wifi.sta.connect() are unusable if WIFI_SDK_EVENT_MONITOR_ENABLE is defined. This is because wifi_event_monitor_register() expects the first argument on the stack to be the event code, whereas connect/disconnect have left the callback function as the first argument. Fix is to remove the (copied) callback.

@marcelstoer marcelstoer added this to the 2.1 follow-up II milestone Sep 8, 2017
@marcelstoer marcelstoer merged commit 4a91464 into nodemcu:dev Oct 28, 2017
crasu pushed a commit to crasu/nodemcu-firmware that referenced this pull request Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants