Hi all!
I've got a type check warning. I tried to add "as xxx" (Array, Float and so on...) to no avail.
What's missing here?
It's about ANT+ radar data gathering. Works fine - but throws the warnings...
INITIALIZE:
bikeRadar = new AntPlus.BikeRadar(null);
ON COMPUTE:
var radarInfo = bikeRadar.getRadarInfo();
if (radarInfo != null) {
System.println("RadarInfo: ok!");
isRadar = true;
myRadarSpeed1 = radarInfo[0].speed;
myRadarThreat1 = radarInfo[0].threat;
}
var batObj = bikeRadar.getBatteryStatus(null);
if ( batObj != null ) {
myRadarBattery = batObj.batteryStatus;
System.println(myRadarBattery);
}
Row 6 and 7 throw a WARNING (radarInfo[0].speed and .threat) :
WARNING: edge1050: C:\Garmin_IQ_Projekte\Edge1_Ebike_Beta\source\EdgeAllinOne1View.mc:1187,16: Cannot determine if container access is using container type.
WARNING: edge1050: C:\Garmin_IQ_Projekte\Edge1_Ebike_Beta\source\EdgeAllinOne1View.mc:1188,16: Cannot determine if container access is using container type.
What is missing here?
Thank you!
