minor tweaks
This commit is contained in:
@@ -150,6 +150,8 @@ Event.on({ 'milo_cycle', 'milo_queue' }, function(e)
|
|||||||
local taskTimer = Util.timer()
|
local taskTimer = Util.timer()
|
||||||
Milo:resetCraftingStatus()
|
Milo:resetCraftingStatus()
|
||||||
|
|
||||||
|
turtle.setStatus('Milo: tasks')
|
||||||
|
|
||||||
for _, task in ipairs(context.tasks) do
|
for _, task in ipairs(context.tasks) do
|
||||||
local timer = Util.timer()
|
local timer = Util.timer()
|
||||||
local s, m = pcall(function() task:cycle(context) end)
|
local s, m = pcall(function() task:cycle(context) end)
|
||||||
@@ -159,9 +161,10 @@ Event.on({ 'milo_cycle', 'milo_queue' }, function(e)
|
|||||||
end
|
end
|
||||||
task.execTime = task.execTime + timer()
|
task.execTime = task.execTime + timer()
|
||||||
end
|
end
|
||||||
|
turtle.setStatus('Milo: idle')
|
||||||
|
|
||||||
context.taskTimer = context.taskTimer + taskTimer()
|
context.taskTimer = context.taskTimer + taskTimer()
|
||||||
context.taskCounter = context.taskCounter + 1
|
context.taskCounter = context.taskCounter + 1
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if context.storage:isOnline() and #context.queue > 0 then
|
if context.storage:isOnline() and #context.queue > 0 then
|
||||||
@@ -220,5 +223,7 @@ local s, m = pcall(function()
|
|||||||
UI:pullEvents()
|
UI:pullEvents()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
turtle.setStatus('idle')
|
||||||
|
|
||||||
_G._syslog = oldDebug
|
_G._syslog = oldDebug
|
||||||
if not s then error(m) end
|
if not s then error(m) end
|
||||||
|
|||||||
@@ -38,6 +38,9 @@ local wizardPage = UI.WizardPage {
|
|||||||
|
|
||||||
function wizardPage:setNode(node)
|
function wizardPage:setNode(node)
|
||||||
self.form:setValues(node)
|
self.form:setValues(node)
|
||||||
|
if not node.volume then
|
||||||
|
self.form.volume = 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function wizardPage:saveNode(node)
|
function wizardPage:saveNode(node)
|
||||||
|
|||||||
Reference in New Issue
Block a user