#115, #116 multiple bugfixes with reactor PLC code

This commit is contained in:
Mikayla Fischler
2022-11-05 12:44:40 -04:00
parent 1828920873
commit aaab34f1a8
3 changed files with 34 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ local config = require("reactor-plc.config")
local plc = require("reactor-plc.plc")
local threads = require("reactor-plc.threads")
local R_PLC_VERSION = "beta-v0.9.1"
local R_PLC_VERSION = "beta-v0.9.2"
local print = util.print
local println = util.println
@@ -134,6 +134,8 @@ if __shared_memory.networked and smem_dev.modem == nil then
end
-- PLC init
---
--- EVENT_CONSUMER: this function consumes events
local function init()
if plc_state.init_ok then
-- just booting up, no fission allowed (neutrons stay put thanks)