minor tweaks

This commit is contained in:
kepler155c@gmail.com
2019-07-12 16:03:55 -06:00
parent d1bac2b309
commit a79e79db28
2 changed files with 9 additions and 1 deletions

View File

@@ -150,6 +150,8 @@ Event.on({ 'milo_cycle', 'milo_queue' }, function(e)
local taskTimer = Util.timer()
Milo:resetCraftingStatus()
turtle.setStatus('Milo: tasks')
for _, task in ipairs(context.tasks) do
local timer = Util.timer()
local s, m = pcall(function() task:cycle(context) end)
@@ -159,9 +161,10 @@ Event.on({ 'milo_cycle', 'milo_queue' }, function(e)
end
task.execTime = task.execTime + timer()
end
turtle.setStatus('Milo: idle')
context.taskTimer = context.taskTimer + taskTimer()
context.taskCounter = context.taskCounter + 1
end
if context.storage:isOnline() and #context.queue > 0 then
@@ -220,5 +223,7 @@ local s, m = pcall(function()
UI:pullEvents()
end)
turtle.setStatus('idle')
_G._syslog = oldDebug
if not s then error(m) end

View File

@@ -38,6 +38,9 @@ local wizardPage = UI.WizardPage {
function wizardPage:setNode(node)
self.form:setValues(node)
if not node.volume then
self.form.volume = 1
end
end
function wizardPage:saveNode(node)