UnexpectedTypeException: Expected String, given
compute in source\SmartCycleView.mc:549 Note "Expected String, given " - given what, exactly???
Also CIQ_LOG.TXT reports:
ERROR: Unhandled Exception
DETAILS: Failed invoking <symbol>
STORE_ID: 00000000000000000000000000000000
CALLSTACK:
WARNING: Failed in data field compute
STORE_ID: 00000000000000000000000000000000
Now the line in question that was reported, line 549, is in my compute(info) function (the line is "power = info.currentPower;"):
function compute(info) {
avgSpeed = info.averageSpeed;
if (avgSpeed == null) {
activityStarted = false;
} else {
avgSpeed *= $.speedConversionFactor;
activityStarted = avgSpeed > 0;
}
speed = info.currentSpeed;
if (speed != null && speed != 0) {
speed *= $.speedConversionFactor;
showStats = false; //???stats
} else {
showStats = activityStarted; //???stats
}
cadence = info.currentCadence;
heartRate = info.currentHeartRate;
hrZones.compute(heartRate, ! activityStarted, activityStarted && ! showStats);
heading = info.currentHeading;
power = info.currentPower;
distance = info.elapsedDistance;
if (distance != null) {
distance *= $.distanceConversionFactor;
}
if (showStats && stats != null) {
stats.compute(info);
}
}
That line looks pretty innocuous, it's just getting the power data. If currentPower isn't available, it should return null right? That's the way it works on my FR735XT.
Any ideas?