diff --git a/src/kernel/peripherals/Peripherals.hx b/src/kernel/peripherals/Peripherals.hx index 7526691..bee3f03 100644 --- a/src/kernel/peripherals/Peripherals.hx +++ b/src/kernel/peripherals/Peripherals.hx @@ -50,11 +50,11 @@ class Peripheral { } var types = getTypes(addr); - var methodsMap = cc.Peripheral.getMethods(addr).toArray(); + var methodsMap = cc.Peripheral.getMethods(addr).toMap(); var methods:Array = []; - for (method in methodsMap) { - methods.push(method); + for (k => v in methodsMap) { + methods.push(k); } return {