Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for done = false do
- if ps[i] == "cryptographic accelerator_0" then
- peripheral.wrap("cryptographic accelerator_0")
- print("Found crypto!")
- done = true
- elif ps[i] == nil then
- print("No more peripherals to be found")
- done = true
- else
- print("Found invalid peripheral!")
- i = i + 1
- end
- print("This shouldn't appear")
- end
Advertisement
Add Comment
Please, Sign In to add comment