fixed inspect for Peripherals
This commit is contained in:
parent
adb758bd53
commit
dd146d1caf
@ -1,5 +1,6 @@
|
|||||||
package kernel.peripherals;
|
package kernel.peripherals;
|
||||||
|
|
||||||
|
import kernel.log.Log;
|
||||||
import kernel.peripherals.Modem;
|
import kernel.peripherals.Modem;
|
||||||
import kernel.peripherals.Screen;
|
import kernel.peripherals.Screen;
|
||||||
|
|
||||||
@ -50,12 +51,7 @@ class Peripheral {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var types = getTypes(addr);
|
var types = getTypes(addr);
|
||||||
var methodsMap = cc.Peripheral.getMethods(addr).toMap();
|
var methods = cc.Peripheral.getMethods(addr).toArray();
|
||||||
var methods:Array<String> = [];
|
|
||||||
|
|
||||||
for (k => v in methodsMap) {
|
|
||||||
methods.push(k);
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
types: types,
|
types: types,
|
||||||
|
Loading…
Reference in New Issue
Block a user