fixed native cc call to getMethods

This commit is contained in:
Djeeberjr 2023-08-06 22:04:44 +02:00
parent a568c9cdd8
commit 0cac0053e3

View File

@ -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<String> = [];
for (method in methodsMap) {
methods.push(method);
for (k => v in methodsMap) {
methods.push(k);
}
return {