mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
changed modbus init function name, fixed bugs with RTU startup, improved PPM debug prints
This commit is contained in:
@ -26,7 +26,7 @@ local MODBUS_EXCODE = {
|
||||
}
|
||||
|
||||
-- new modbus comms handler object
|
||||
function modbus_init(rtu_dev)
|
||||
function new(rtu_dev)
|
||||
local self = {
|
||||
rtu = rtu_dev
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ function mount_all()
|
||||
dev = pm_dev
|
||||
}
|
||||
|
||||
log._debug("PPM: found a " .. self.mounts[ifaces[i]].type)
|
||||
log._debug("PPM: found a " .. self.mounts[ifaces[i]].type .. " (" .. ifaces[i] .. ")")
|
||||
end
|
||||
|
||||
if #ifaces == 0 then
|
||||
|
Reference in New Issue
Block a user