changed modbus init function name, fixed bugs with RTU startup, improved PPM debug prints

This commit is contained in:
Mikayla Fischler
2022-04-18 00:10:47 -04:00
parent 6d6953d795
commit a6e1134dc3
3 changed files with 7 additions and 7 deletions

View File

@ -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
}

View File

@ -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