I tried to code an interval datafield and relied on that onTimerLap() is called at each high-intensity or rest period start. As I can see in the .FIT file an automatic lap is indeed fired by the watch, but the onTimerLap() is not called at all. I now advised the code to do the following:
var newLapDetected;
var printNewLap;
function initialize() {
newLapDetected = 0;
printNewLap = false;
}
function onTimerLap() {
newLapDetected = 0;
printNewLap = true;
}
function compute(info) {
if (newLapDetected != 15) {
newLapDetected += 1;
} else {
printNewLap = false;
}
}
function onUpdate(dc) {
if (printNewLap) {
dc.drawText(58, 49, 5, "New Lap detected", Graphics.TEXT_JUSTIFY_CENTER);
return true;
}
}
This should be the double check to confirm the problem. I started an interval training on my real watch (not the simulator) which toggled every 20 secs the high-intensity and rest period, but I have not seen the "New Lap detected" screen. Can you also confirm that bug?