Forgot return
authorOlav Bakke Svendsen <mail@olavbs.no>
Thu, 12 Oct 2023 03:49:48 +0000 (05:49 +0200)
committerOlav Bakke Svendsen <mail@olavbs.no>
Thu, 12 Oct 2023 03:49:48 +0000 (05:49 +0200)
steam/temporary-coal-feeder.lua

index 5703f89cda70b3de391ab5ef7e56fbfb4293b71b..af813c0ce0f83ba34c47fd8646651725594ae9ef 100644 (file)
@@ -82,6 +82,7 @@ local spinner_chars = {"\\","-","/","|"}
 local spinner = function()
   local c = table.remove(spinner_chars)
   table.insert(spinner_chars, 1, c)
+  return c
 end
 
 local main_timer = os.startTimer(0)
@@ -99,8 +100,8 @@ while true do
   elseif e[1] == "timer" and e[2] == spinner_timer then
     spinner_timer = os.startTimer(0.5)
     local s = spinner()
-    main_monitor.setCursorPos(27,10)
-    monitor.setTextColor(1)
+    main_monitor.setTextColor(1)
+    main_monitor.setCursorPos(29,12)
     main_monitor.write(s)
   end
 end