From dd146d1caf0070bd5cdced56b16d2d57ec642426 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Thu, 18 Apr 2024 23:11:16 +0200 Subject: [PATCH] fixed inspect for Peripherals --- src/kernel/peripherals/Peripherals.hx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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,