#358 fixed non-networked PLC operation

This commit is contained in:
Mikayla Fischler
2023-10-14 10:07:56 -04:00
parent 670ca78a5b
commit 86e8feaabc
2 changed files with 13 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ local plc = require("reactor-plc.plc")
local renderer = require("reactor-plc.renderer")
local threads = require("reactor-plc.threads")
local R_PLC_VERSION = "v1.6.0"
local R_PLC_VERSION = "v1.6.1"
local println = util.println
local println_ts = util.println_ts
@@ -69,7 +69,7 @@ local function main()
ppm.mount_all()
-- message authentication init
if string.len(config.AuthKey) > 0 then
if type(config.AuthKey) == "string" and string.len(config.AuthKey) > 0 then
network.init_mac(config.AuthKey)
end