luacheck fixes
This commit is contained in:
@@ -231,9 +231,8 @@ end
|
|||||||
|
|
||||||
-- initialize facility-dependent components of pocket iocontrol
|
-- initialize facility-dependent components of pocket iocontrol
|
||||||
---@param conf facility_conf configuration
|
---@param conf facility_conf configuration
|
||||||
---@param comms pocket_comms comms reference
|
|
||||||
---@param temp_scale 1|2|3|4 temperature unit (1 = K, 2 = C, 3 = F, 4 = R)
|
---@param temp_scale 1|2|3|4 temperature unit (1 = K, 2 = C, 3 = F, 4 = R)
|
||||||
function iocontrol.init_fac(conf, comms, temp_scale)
|
function iocontrol.init_fac(conf, temp_scale)
|
||||||
-- temperature unit label and conversion function (from Kelvin)
|
-- temperature unit label and conversion function (from Kelvin)
|
||||||
if temp_scale == 2 then
|
if temp_scale == 2 then
|
||||||
io.temp_label = "\xb0C"
|
io.temp_label = "\xb0C"
|
||||||
|
|||||||
@@ -350,7 +350,7 @@ function pocket.comms(version, nic, sv_watchdog, api_watchdog)
|
|||||||
local conf = { num_units = fac_config[1], cooling = fac_config[2] }
|
local conf = { num_units = fac_config[1], cooling = fac_config[2] }
|
||||||
|
|
||||||
---@todo unit options
|
---@todo unit options
|
||||||
iocontrol.init_fac(conf, public, 1)
|
iocontrol.init_fac(conf, 1)
|
||||||
|
|
||||||
log.info("coordinator connection established")
|
log.info("coordinator connection established")
|
||||||
self.establish_delay_counter = 0
|
self.establish_delay_counter = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user