Commit 9a2fb845 authored by Johny Mattsson's avatar Johny Mattsson Committed by Johny Mattsson
Browse files

Fix broken sjson module init.

parent 6db8c434
...@@ -1037,7 +1037,7 @@ LROT_END(sjson, NULL, 0) ...@@ -1037,7 +1037,7 @@ LROT_END(sjson, NULL, 0)
LUALIB_API int luaopen_sjson (lua_State *L) { LUALIB_API int luaopen_sjson (lua_State *L) {
luaL_rometatable(L, "sjson.decoder", LROT_TABLEREF(sjson_decoder_map)); luaL_rometatable(L, "sjson.decoder", LROT_TABLEREF(sjson_decoder_map));
luaL_rometatable(L, "sjson.encoder", LROT_TABLEREF(sjson_encoder_map)); luaL_rometatable(L, "sjson.encoder", LROT_TABLEREF(sjson_encoder_map));
return 1; return 0;
} }
NODEMCU_MODULE(SJSON, "sjson", sjson, luaopen_sjson); NODEMCU_MODULE(SJSON, "sjson", sjson, luaopen_sjson);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment