diff --git a/milo/MiloLocal.lua b/milo/MiloLocal.lua index 2954212..d3a93ca 100644 --- a/milo/MiloLocal.lua +++ b/milo/MiloLocal.lua @@ -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 diff --git a/milo/plugins/speakerView.lua b/milo/plugins/speakerView.lua index 95a11eb..2d79952 100644 --- a/milo/plugins/speakerView.lua +++ b/milo/plugins/speakerView.lua @@ -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)