PLC modem disconnect bugfix
This commit is contained in:
parent
4d5cbcf475
commit
07e9101ac7
@ -12,7 +12,7 @@ os.loadAPI("config.lua")
|
|||||||
os.loadAPI("plc.lua")
|
os.loadAPI("plc.lua")
|
||||||
os.loadAPI("threads.lua")
|
os.loadAPI("threads.lua")
|
||||||
|
|
||||||
local R_PLC_VERSION = "alpha-v0.4.8"
|
local R_PLC_VERSION = "alpha-v0.4.9"
|
||||||
|
|
||||||
local print = util.print
|
local print = util.print
|
||||||
local println = util.println
|
local println = util.println
|
||||||
|
|||||||
@ -92,7 +92,7 @@ function thread__main(smem, init)
|
|||||||
-- send an alarm: plc_comms.send_alarm(ALARMS.PLC_PERI_DC) ?
|
-- send an alarm: plc_comms.send_alarm(ALARMS.PLC_PERI_DC) ?
|
||||||
elseif networked and device.type == "modem" then
|
elseif networked and device.type == "modem" then
|
||||||
-- we only care if this is our wireless modem
|
-- we only care if this is our wireless modem
|
||||||
if device.dev == modem then
|
if device.dev == plc_dev.modem then
|
||||||
println_ts("wireless modem disconnected!")
|
println_ts("wireless modem disconnected!")
|
||||||
log._error("comms modem disconnected!")
|
log._error("comms modem disconnected!")
|
||||||
plc_state.no_modem = true
|
plc_state.no_modem = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user