Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
4a914644
"components/vscode:/vscode.git/clone" did not exist on "dbc8d791c6e0231ff421668dca64efc08733069d"
Commit
4a914644
authored
Oct 29, 2017
by
Johny Mattsson
Committed by
Marcel Stör
Oct 28, 2017
Browse files
Fixed broken wifi.sta.{dis,}connect() with event mon enabled. (#2098)
parent
26540cf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/wifi.c
View file @
4a914644
...
@@ -979,6 +979,7 @@ static int wifi_station_connect4lua( lua_State* L )
...
@@ -979,6 +979,7 @@ static int wifi_station_connect4lua( lua_State* L )
if
(
lua_isfunction
(
L
,
1
)){
if
(
lua_isfunction
(
L
,
1
)){
lua_pushnumber
(
L
,
EVENT_STAMODE_CONNECTED
);
lua_pushnumber
(
L
,
EVENT_STAMODE_CONNECTED
);
lua_pushvalue
(
L
,
1
);
lua_pushvalue
(
L
,
1
);
lua_remove
(
L
,
1
);
wifi_event_monitor_register
(
L
);
wifi_event_monitor_register
(
L
);
}
}
#endif
#endif
...
@@ -993,6 +994,7 @@ static int wifi_station_disconnect4lua( lua_State* L )
...
@@ -993,6 +994,7 @@ static int wifi_station_disconnect4lua( lua_State* L )
if
(
lua_isfunction
(
L
,
1
)){
if
(
lua_isfunction
(
L
,
1
)){
lua_pushnumber
(
L
,
EVENT_STAMODE_DISCONNECTED
);
lua_pushnumber
(
L
,
EVENT_STAMODE_DISCONNECTED
);
lua_pushvalue
(
L
,
1
);
lua_pushvalue
(
L
,
1
);
lua_remove
(
L
,
1
);
wifi_event_monitor_register
(
L
);
wifi_event_monitor_register
(
L
);
}
}
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment