diff --git a/src/kernel/peripherals/Peripherals.hx b/src/kernel/peripherals/Peripherals.hx index c344542..4afd8ba 100644 --- a/src/kernel/peripherals/Peripherals.hx +++ b/src/kernel/peripherals/Peripherals.hx @@ -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 = []; - - for (k => v in methodsMap) { - methods.push(k); - } + var methods = cc.Peripheral.getMethods(addr).toArray(); return { types: types,