1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-15 07:47:40 +00:00

wizard - modem fixes

This commit is contained in:
kepler155c@gmail.com
2018-11-12 15:22:29 -05:00
parent 17d55e75ce
commit f9359cf77f
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ end
-- create a psuedo-device named 'wireleess_modem'
kernel.hook('device_attach', function(_, eventData)
local dev = device[eventData[1]]
if dev.type == 'modem' then
if dev and dev.type == 'modem' then
if setModem(dev) then
startNetwork()
end