summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-11 11:56:59 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-11 11:56:59 -0400
commita87dc7485971275d9fdc92fc7e006e048fddae72 (patch)
tree4f287ec5dd02fcd7ab2f85979fd1535edfdde996
parent4c758ec1dad5ea40b78c238f5b8c414483fef55e (diff)
downloadnodeMCU_rf_source_lmx2487-a87dc7485971275d9fdc92fc7e006e048fddae72.tar.gz
nodeMCU_rf_source_lmx2487-a87dc7485971275d9fdc92fc7e006e048fddae72.zip
remove obsolete init.old.lua
-rw-r--r--init.old.lua30
1 files changed, 0 insertions, 30 deletions
diff --git a/init.old.lua b/init.old.lua
deleted file mode 100644
index 34c744e..0000000
--- a/init.old.lua
+++ /dev/null
@@ -1,30 +0,0 @@
--- Compile server code and remove original .lua files.
--- This only happens the first time after the .lua files are uploaded.
-local compileAndRemoveIfNeeded = function(f)
- if file.open(f) then
- file.close()
- print('Compiling:', f)
- node.compile(f)
- file.remove(f)
- collectgarbage()
- end
-end
-
-local serverFiles = {
- 'microwire.lua',
- 'lmx2487lib.lua',
- 'binaryLib.lua',
- 'freq2lmx2487settings.lua'
-}
---for i, f in ipairs(serverFiles) do compileAndRemoveIfNeeded(f) end
-
-compileAndRemoveIfNeeded = nil
-serverFiles = nil
-collectgarbage()
-
-
--- some diagnostic
-print('chip: ',node.chipid())
-print('heap: ',node.heap())
-
-dofile("main.lua")