Handle unlabeled CC computers in factory debug

This commit is contained in:
2026-07-18 01:05:05 +02:00
parent 741fad1f22
commit 3245afa156
+2 -1
View File
@@ -115,7 +115,8 @@ table.sort(names)
emit("ATM10 CREATE FACTORY PERIPHERAL DEBUG") emit("ATM10 CREATE FACTORY PERIPHERAL DEBUG")
emit("Computer ID: " .. tostring(os.getComputerID())) emit("Computer ID: " .. tostring(os.getComputerID()))
emit("Computer label: " .. tostring(os.getComputerLabel())) local computerLabel = os.getComputerLabel()
emit("Computer label: " .. tostring(computerLabel or "<not set>"))
emit("Uptime timer/clock: " .. tostring(os.clock())) emit("Uptime timer/clock: " .. tostring(os.clock()))
emit("Peripheral count: " .. tostring(#names)) emit("Peripheral count: " .. tostring(#names))
emit(string.rep("=", 72)) emit(string.rep("=", 72))