summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-01-25 23:43:36 +0000
committerubq323 <ubq323@ubq323.website>2023-01-25 23:43:36 +0000
commit8a5bc10b58aeec61a5d8b58e3aa31614c80a2655 (patch)
tree7ecf8c05915a366aa462eef346d4ab9ea1051902
parent7c18ce981f5f99f719f629bae371053daa3fc5b9 (diff)
somewhat more resilient shop2
-rw-r--r--shop2/main.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/shop2/main.lua b/shop2/main.lua
index 078b8d9..7b298db 100644
--- a/shop2/main.lua
+++ b/shop2/main.lua
@@ -108,7 +108,12 @@ end
local run_disp = require"shop2.disp".run
+while true do
print(pcall(parallel.waitForAny,run_shop,run_disp))
+print("restarting....")
+os.sleep(0.5)
+end
+
-- print("hi")
-- peripheral.call("top","clear")
-- peripheral.call("left","clear")