More debugging.

This commit is contained in:
Harrison Deng 2021-05-03 13:12:17 -05:00
parent cadf3f5d69
commit ba1853d782

View File

@ -27,6 +27,8 @@ local FAILED = "failed"
running = true running = true
local modem = peripheral.find("modem") local modem = peripheral.find("modem")
print("Checking for modem.") print("Checking for modem.")
if (modem == nil) then if (modem == nil) then
error("Modem not found.") error("Modem not found.")
@ -119,6 +121,7 @@ local function listenToMiners()
end end
printPrompt() printPrompt()
end end
print("No longer listening to miners.")
end end
parallel.waitForAll(listenToMiners, listenForCommands) parallel.waitForAll(listenToMiners, listenForCommands)