tweaks + gps server fix

This commit is contained in:
kepler155c@gmail.com
2019-04-07 21:20:42 -04:00
parent 8f2c97d269
commit fba1546213
4 changed files with 8 additions and 6 deletions

View File

@@ -125,10 +125,10 @@ local function server()
local config = Config.load('gpsServer')
local modems = { }
modems['modem_' .. config.east] = { x = config.x + 2, y = config.y + 2, z = config.z }
modems['modem_' .. config.west] = { x = config.x - 2, y = config.y + 2, z = config.z }
modems['modem_' .. config.south] = { x = config.x, y = config.y, z = config.z + 2 }
modems['modem_' .. config.north] = { x = config.x, y = config.y, z = config.z - 2 }
modems['modem_' .. config.east] = { x = config.x + 2, y = config.y + 1, z = config.z }
modems['modem_' .. config.west] = { x = config.x - 2, y = config.y + 1, z = config.z }
modems['modem_' .. config.south] = { x = config.x, y = config.y - 1, z = config.z + 2 }
modems['modem_' .. config.north] = { x = config.x, y = config.y - 1, z = config.z - 2 }
for k, modem in pairs(modems) do
Util.merge(modem, peripheral.wrap(k) or { })

View File

@@ -1,6 +1,7 @@
{
title = 'Shell utilities',
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/openos',
description = [[ Experimental! Utilties for shell: grep, cat, touch, etc ]],
description = [[Experimental!
Utilties for shell: grep, cat, touch, etc ]],
licence = 'MIT',
}

View File

@@ -22,6 +22,7 @@ for i = 1, #args do
file:close()
if chunk then
io.write(chunk)
io.write('\n')
end
end
end

View File

@@ -2,5 +2,5 @@
title = 'Recipe books for crafting programs',
repository = 'kepler155c/opus-apps/{{OPUS_BRANCH}}/recipeBook',
description = [[ WIP ]],
licence = 'MIT',
licence = 'Recipes for crafting',
}