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

This commit is contained in:
Johny Mattsson 2017-10-29 08:23:15 +11:00 committed by Marcel Stör
parent 26540cf098
commit 4a91464467
1 changed files with 2 additions and 0 deletions

View File

@ -979,6 +979,7 @@ static int wifi_station_connect4lua( lua_State* L )
if(lua_isfunction(L, 1)){
lua_pushnumber(L, EVENT_STAMODE_CONNECTED);
lua_pushvalue(L, 1);
lua_remove(L, 1);
wifi_event_monitor_register(L);
}
#endif
@ -993,6 +994,7 @@ static int wifi_station_disconnect4lua( lua_State* L )
if(lua_isfunction(L, 1)){
lua_pushnumber(L, EVENT_STAMODE_DISCONNECTED);
lua_pushvalue(L, 1);
lua_remove(L, 1);
wifi_event_monitor_register(L);
}
#endif