made peripherals a static class

This commit is contained in:
2023-07-27 20:38:23 +02:00
parent a93ee1cddf
commit 9deea0ee98
14 changed files with 42 additions and 52 deletions

View File

@@ -35,7 +35,7 @@ class Res extends CLIAppBase {
return false;
}
var perf: kernel.peripherals.Redstone = Peripheral.instance.getRedstone(addr);
var perf: kernel.peripherals.Redstone = Peripheral.getRedstone(addr);
if (perf == null) {
handle.writeLine("Error: peripheral not found");