transition to kernel

This commit is contained in:
kepler155c@gmail.com
2018-01-15 16:28:10 -05:00
parent 7db1db2957
commit bd37d32750
7 changed files with 55 additions and 53 deletions

View File

@@ -3,11 +3,11 @@ local GPS = require('gps')
local Socket = require('socket')
local Util = require('util')
local device = _G.device
local multishell = _ENV.multishell
local network = _G.network
local os = _G.os
local turtle = _G.turtle
local device = _G.device
local kernel = _G.kernel
local network = _G.network
local os = _G.os
local turtle = _G.turtle
-- move this into gps api
local gpsRequested
@@ -33,7 +33,7 @@ local function snmpConnection(socket)
elseif msg.type == 'script' then
local fn, err = loadstring(msg.args, 'script')
if fn then
multishell.openTab({
kernel.run({
fn = fn,
title = 'script',
})