mirror of
https://github.com/kepler155c/opus
synced 2024-12-31 19:00:27 +00:00
Merge branch 'develop-1.8' of https://github.com/kepler155c/opus into develop-1.8
This commit is contained in:
commit
db2a28f04c
@ -307,14 +307,16 @@ end
|
|||||||
|
|
||||||
function page:enable()
|
function page:enable()
|
||||||
modemConfig.modems = {}
|
modemConfig.modems = {}
|
||||||
peripheral.find('modem', function(side, dev)
|
Util.each(_G.device, function(dev)
|
||||||
modemConfig.modems[side] = {
|
if dev.type == "modem" then
|
||||||
|
modemConfig.modems[dev.side] = {
|
||||||
type = dev.isWireless() and 'Wireless' or 'Wired',
|
type = dev.isWireless() and 'Wireless' or 'Wired',
|
||||||
side = side,
|
side = dev.side,
|
||||||
openChannels = { },
|
openChannels = { },
|
||||||
device = dev,
|
device = dev,
|
||||||
loaded = false
|
loaded = false
|
||||||
}
|
}
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
modemConfig.currentModem = device.wireless_modem and
|
modemConfig.currentModem = device.wireless_modem and
|
||||||
modemConfig.modems[device.wireless_modem.side] or
|
modemConfig.modems[device.wireless_modem.side] or
|
||||||
|
Loading…
Reference in New Issue
Block a user