Hack3r, hello, nemam Suunto, takze na ten link, co si poslal sa nedostanem a zaroven ten kod, co si poslal nie je PHP syntax, ale vygooglil som si akysi developers manual a myslim, ze cca rozumiem, ako to ma zbiehat.
Skusil by som si v tom nastroji vytvorit 2 vlastne premenne, nazvime ich
state a
beepCount, predvolene hodnoty daj 0 a kod by mohol vyzerat cca:
RESULT = SUUNTO_HR;
if (RESULT > 142 || RESULT < 107) {
if (state == 0) {
beepCount = 0;
}
if (beepCount < 3) {
Suunto.alarmBeep();
beepCount = beepCount + 1;
}
state = 1;
}
else {
state = 0;
}Ja to nemam ako otestovat, tak nam ostava len dufat