Fix broken sjson module init.

This commit is contained in:
Johny Mattsson 2021-11-04 20:51:59 +11:00 committed by Johny Mattsson
parent 6db8c43480
commit 9a2fb84512
1 changed files with 1 additions and 1 deletions

View File

@ -1037,7 +1037,7 @@ LROT_END(sjson, NULL, 0)
LUALIB_API int luaopen_sjson (lua_State *L) {
luaL_rometatable(L, "sjson.decoder", LROT_TABLEREF(sjson_decoder_map));
luaL_rometatable(L, "sjson.encoder", LROT_TABLEREF(sjson_encoder_map));
return 1;
return 0;
}
NODEMCU_MODULE(SJSON, "sjson", sjson, luaopen_sjson);