cleanup, #593 fixes, version increment
This commit is contained in:
parent
a104d8ba83
commit
abe0c45534
@ -1112,6 +1112,7 @@ function iocontrol.update_unit_statuses(statuses)
|
||||
unit.rad_monitors = {}
|
||||
|
||||
for id, envd in pairs(rtu_statuses.envds) do
|
||||
local rtu_faulted = envd[1] ---@type boolean
|
||||
local radiation = envd[2] ---@type radiation_reading
|
||||
local rad_raw = envd[3] ---@type number
|
||||
|
||||
@ -1122,8 +1123,10 @@ function iocontrol.update_unit_statuses(statuses)
|
||||
max_reading = radiation
|
||||
end
|
||||
|
||||
if not rtu_faulted then
|
||||
unit.rad_monitors[id] = { radiation = radiation, raw = rad_raw }
|
||||
end
|
||||
end
|
||||
|
||||
if any_conn then
|
||||
unit.radiation = max_reading
|
||||
|
||||
@ -22,7 +22,7 @@ local pocket = require("pocket.pocket")
|
||||
local renderer = require("pocket.renderer")
|
||||
local threads = require("pocket.threads")
|
||||
|
||||
local POCKET_VERSION = "v0.13.4-beta"
|
||||
local POCKET_VERSION = "v0.13.5-beta"
|
||||
|
||||
local println = util.println
|
||||
local println_ts = util.println_ts
|
||||
|
||||
@ -17,8 +17,8 @@ local max_distance = nil
|
||||
local comms = {}
|
||||
|
||||
-- protocol/data versions (protocol/data independent changes tracked by util.lua version)
|
||||
comms.version = "3.0.6"
|
||||
comms.api_version = "0.0.9"
|
||||
comms.version = "3.0.7"
|
||||
comms.api_version = "0.0.10"
|
||||
|
||||
---@enum PROTOCOL
|
||||
local PROTOCOL = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user