PLC modem disconnect bugfix

This commit is contained in:
Mikayla Fischler
2022-04-29 09:25:08 -04:00
parent 4d5cbcf475
commit 07e9101ac7
2 changed files with 2 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ function thread__main(smem, init)
-- send an alarm: plc_comms.send_alarm(ALARMS.PLC_PERI_DC) ?
elseif networked and device.type == "modem" then
-- 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!")
log._error("comms modem disconnected!")
plc_state.no_modem = true