comment and formatting fixes
This commit is contained in:
parent
859e04712f
commit
2aa5c93404
@ -212,7 +212,7 @@ function threads.thread__main(smem, init)
|
||||
---@cast device Modem
|
||||
local is_comms_modem = util.trinary(plc_dev.modem_wired, plc_dev.modem_iface == param1, device.isWireless())
|
||||
|
||||
-- note, check init_ok since nic will be nil if it is false
|
||||
-- note, check init_ok first since nic will be nil if it is false
|
||||
if is_comms_modem and not (plc_state.init_ok and nic.is_connected()) then
|
||||
-- reconnected modem
|
||||
plc_dev.modem = device
|
||||
|
||||
@ -447,7 +447,7 @@ end
|
||||
---@return table|nil reactor function table
|
||||
function ppm.get_fission_reactor() return ppm.get_device("fissionReactorLogicAdapter") end
|
||||
|
||||
-- get the named wired modem
|
||||
-- get a wired modem by name
|
||||
---@nodiscard
|
||||
---@param iface string CC peripheral interface
|
||||
---@return Modem|nil modem function table
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user