mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
luacheck fixes
This commit is contained in:
parent
8c6b264f6b
commit
a1b6ff4bcc
@ -824,8 +824,9 @@ end
|
|||||||
|
|
||||||
--#endregion
|
--#endregion
|
||||||
|
|
||||||
---@param _self _facility_self
|
-- link the self instance and return the update interface
|
||||||
return function (_self)
|
---@param fac_self _facility_self
|
||||||
self = _self
|
return function (fac_self)
|
||||||
|
self = fac_self
|
||||||
return update
|
return update
|
||||||
end
|
end
|
||||||
|
@ -300,10 +300,8 @@ function svsessions.check_rtu_id(unit, list, max)
|
|||||||
|
|
||||||
-- add to the list for the user
|
-- add to the list for the user
|
||||||
if fail_code > 0 and fail_code ~= 3 then
|
if fail_code > 0 and fail_code ~= 3 then
|
||||||
local r_id = unit.get_reactor()
|
local r_id, idx, type = unit.get_reactor(), unit.get_device_idx(), unit.get_unit_type()
|
||||||
local idx = unit.get_device_idx()
|
local msg
|
||||||
local type = unit.get_unit_type()
|
|
||||||
local msg = "? (error)"
|
|
||||||
|
|
||||||
if r_id == 0 then
|
if r_id == 0 then
|
||||||
msg = "the facility's "
|
msg = "the facility's "
|
||||||
|
Loading…
Reference in New Issue
Block a user