remove dependency on device global + milo backup config

This commit is contained in:
kepler155c@gmail.com
2019-03-11 23:48:53 -04:00
parent f2a8a7e639
commit b43761faf1
21 changed files with 79 additions and 125 deletions

View File

@@ -32,9 +32,7 @@ local parentMon
local defaultEnv = Util.shallowCopy(_ENV)
defaultEnv.multishell = multishell
if args[3] then
parentMon = _G.device[args[3]]
elseif args[2] then
if args[2] then
parentMon = peripheral.wrap(args[2]) or syntax()
else
parentMon = peripheral.find('monitor') or syntax()