fixed inspect for Peripherals

This commit is contained in:
Niklas Kapelle 2024-04-18 23:11:16 +02:00
parent adb758bd53
commit dd146d1caf
Signed by: niklas
GPG Key ID: 4EB651B36D841D16

View File

@ -1,5 +1,6 @@
package kernel.peripherals;
import kernel.log.Log;
import kernel.peripherals.Modem;
import kernel.peripherals.Screen;
@ -50,12 +51,7 @@ class Peripheral {
}
var types = getTypes(addr);
var methodsMap = cc.Peripheral.getMethods(addr).toMap();
var methods:Array<String> = [];
for (k => v in methodsMap) {
methods.push(k);
}
var methods = cc.Peripheral.getMethods(addr).toArray();
return {
types: types,