cleanup/fixes of scada common code

This commit is contained in:
Mikayla Fischler
2022-05-10 11:35:52 -04:00
parent 25558df22d
commit cd0d7aa5a3
6 changed files with 41 additions and 37 deletions

View File

@@ -231,7 +231,7 @@ rsio.digital_write = function (channel, active)
if channel < RS_IO.WASTE_PO or channel > RS_IO.R_PLC_TIMEOUT then
return IO_LVL.LOW
else
return RS_DIO_MAP[channel]._f(level)
return RS_DIO_MAP[channel]._f(active)
end
end