We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f1c64 commit 98e428fCopy full SHA for 98e428f
app/modules/wifi.c
@@ -438,7 +438,7 @@ void wifi_pmSleep_suspend_CB(void)
438
{
439
lua_State* L = lua_getstate(); // Get main Lua thread pointer
440
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
+ luaL_unref(L, LUA_REGISTRYINDEX, wifi_suspend_cb_ref); // remove suspend callback from LUA_REGISTRY
442
wifi_suspend_cb_ref = LUA_NOREF; // Update variable since reference is no longer valid
443
lua_call(L, 0, 0); // Execute suspend callback
444
}
0 commit comments