mirror of
https://github.com/kepler155c/opus
synced 2024-12-28 17:40:26 +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()
|
||||
modemConfig.modems = {}
|
||||
peripheral.find('modem', function(side, dev)
|
||||
modemConfig.modems[side] = {
|
||||
type = dev.isWireless() and 'Wireless' or 'Wired',
|
||||
side = side,
|
||||
openChannels = { },
|
||||
device = dev,
|
||||
loaded = false
|
||||
}
|
||||
Util.each(_G.device, function(dev)
|
||||
if dev.type == "modem" then
|
||||
modemConfig.modems[dev.side] = {
|
||||
type = dev.isWireless() and 'Wireless' or 'Wired',
|
||||
side = dev.side,
|
||||
openChannels = { },
|
||||
device = dev,
|
||||
loaded = false
|
||||
}
|
||||
end
|
||||
end)
|
||||
modemConfig.currentModem = device.wireless_modem and
|
||||
modemConfig.modems[device.wireless_modem.side] or
|
||||
|
Loading…
Reference in New Issue
Block a user