From 1220c405f14618b85097f9c70a26ba72ecdc7c01 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 29 Jul 2017 16:29:13 -0400 Subject: [PATCH] Expunge cjson in favor of sjson --- README.rst | 2 +- init2.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 67ddd36..dcb3ccd 100644 --- a/README.rst +++ b/README.rst @@ -55,7 +55,6 @@ NodeMCU modules used Please ensure that your build of NodeMCU supports the following modules: * ``bit`` (for LCD) -* ``cjson`` * ``cron`` * ``file`` * ``i2c`` (for LCD) @@ -63,6 +62,7 @@ Please ensure that your build of NodeMCU supports the following modules: * ``net`` * ``node`` * ``rtctime`` +* ``sjson`` * ``sntp`` * ``tmr`` * ``wifi`` diff --git a/init2.lua b/init2.lua index fea49b4..8623c4f 100644 --- a/init2.lua +++ b/init2.lua @@ -6,7 +6,7 @@ dofile("compileall.lc") -- notably, the LCD address local ctfwshw = {} if file.open("ctfws-misc.conf","r") then - local conf = cjson.decode(file.read() or "") + local conf = sjson.decode(file.read() or "") if type(conf) == "table" then ctfwshw = conf else print("ctfws-misc.conf malformed") -- 2.50.1