23 oktober 2014 kl 20:31
1. Definera variablerna och prefixet enligt skärmdumpen
2. Klistra in det här:
/* While in sport mode do this once per second */
RESULT = 0;
/* Code */
if ( SUUNTO_LAP_NUMBER <= 1 ) {
WARMUP = SUUNTO_DURATION;
RESULT = SUUNTO_DURATION;
} else {
if (Counter == (5 * (High + Low))-Low) {
SetCounter = SetCounter + 1;
prefix = "REST";
postfix = "s";
RESULT = SetRest - SetCounter;
if (SetCounter == SetRest) {
Rep = 1;
Counter = 0;
SetCounter = 0;
IntTime = 70;
prefix = "RUN";
Suunto.alarmBeep();
}
} else {
Counter = Counter + 1;
if ( Counter == ((Rep * (High + Low)) - Low)) {
IntTime = Counter + Low;
prefix = "REST";
postfix = "s";
Suunto.alarmBeep();
}
if ( Counter == (Rep * (High + Low)) ) {
IntTime = Counter + High;
Rep = Rep + 1;
prefix = "RUN";
postfix = "s";
Suunto.alarmBeep();
}
RESULT = IntTime - Counter;
}
}