From c4f6c1b289f30031b31d542ef9e150169130521b Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sun, 19 Feb 2023 22:41:32 -0500 Subject: [PATCH] #159 fixed RTU facility level redstone linking --- install_manifest.json | 4 ++-- rtu/startup.lua | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install_manifest.json b/install_manifest.json index 58131e8..07f929a 100644 --- a/install_manifest.json +++ b/install_manifest.json @@ -3,7 +3,7 @@ "bootloader": "0.2", "comms": "1.3.3", "reactor-plc": "beta-v0.10.11", - "rtu": "beta-v0.11.0", + "rtu": "beta-v0.11.1", "supervisor": "beta-v0.11.13", "coordinator": "beta-v0.9.16", "pocket": "alpha-v0.0.0" @@ -181,7 +181,7 @@ "graphics": 99360, "lockbox": 100797, "reactor-plc": 75956, - "rtu": 81511, + "rtu": 81676, "supervisor": 261745, "coordinator": 180622, "pocket": 335 diff --git a/rtu/startup.lua b/rtu/startup.lua index bbe5ee8..bb74421 100644 --- a/rtu/startup.lua +++ b/rtu/startup.lua @@ -25,7 +25,7 @@ local sna_rtu = require("rtu.dev.sna_rtu") local sps_rtu = require("rtu.dev.sps_rtu") local turbinev_rtu = require("rtu.dev.turbinev_rtu") -local RTU_VERSION = "beta-v0.11.0" +local RTU_VERSION = "beta-v0.11.1" local rtu_t = types.rtu_t @@ -131,8 +131,8 @@ local function main() local io_reactor = rtu_redstone[entry_idx].for_reactor ---@type integer -- CHECK: reactor ID must be >= to 1 - if (not util.is_int(io_reactor)) or (io_reactor <= 0) then - println(util.c("configure> redstone entry #", entry_idx, " : ", io_reactor, " isn't an integer >= 1")) + if (not util.is_int(io_reactor)) or (io_reactor < 0) then + println(util.c("configure> redstone entry #", entry_idx, " : ", io_reactor, " isn't an integer >= 0")) return false end