Skip to content

Commit 50fcd72

Browse files
authored
Update wifi..c to fix #3106
1 parent 5e2ea5a commit 50fcd72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/modules/wifi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ void wifi_pmSleep_suspend_CB(void)
438438
{
439439
lua_State* L = lua_getstate(); // Get main Lua thread pointer
440440
lua_rawgeti(L, LUA_REGISTRYINDEX, wifi_suspend_cb_ref); // Push suspend callback onto stack
441-
luaL_unref(L, wifi_suspend_cb_ref); // remove suspend callback from LUA_REGISTRY
441+
luaL_unref(L, LUA_REGISTRYINDEX, wifi_suspend_cb_ref); // remove suspend callback from LUA_REGISTRY
442442
wifi_suspend_cb_ref = LUA_NOREF; // Update variable since reference is no longer valid
443443
lua_call(L, 0, 0); // Execute suspend callback
444444
}

0 commit comments

Comments
 (0)