This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
FREAX/bin/detach
2022-07-18 19:33:40 +02:00

2 lines
No EOL
256 B
Text

if periphemu == nil then error("Attaching peripherals is not supported in vanilla mode.") end
if type(({...})[1]) ~= "string" then print("Usage: detach <side>") else if not periphemu.remove(({...})[1]) then printError("Could not detach peripheral") end end