fixed inspect for Peripherals
This commit is contained in:
parent
adb758bd53
commit
dd146d1caf
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user