function hrmHandler(hrm){
        if (hrm.confidence>80){
            if (boot){
                Bangle.setHRMPower(0, "sleepasbanglejs");
            }
            else{
                Bangle.setHRMPower(0);
            }
            pauseHrTracking(10000);
        }
        //TODO actualy do something with this data
    }
//every 100s start hrm again and see if confidence is still high enough
every 100s start hrm again and see if confidence is still high enough
every 100s start hrm again and see if confidence is still high enough
function hrmHandler(hrm){
        if (hrm.confidence>80){
            if (boot){
                Bangle.setHRMPower(0, "sleepasbanglejs");
            }
            else{
                Bangle.setHRMPower(0);
            }
            pauseHrTracking(10000);
        }
    }
function hrmHandler ( hrm ) { if ( hrm . confidence > 80 ) { if ( boot ) { Bangle . setHRMPower ( 0 , "sleepasbanglejs" ) ; } else { Bangle . setHRMPower ( 0 ) ; } pauseHrTracking ( 10000 ) ; } }
every 100s start hrm again and see if confidence is still high enough
every 100s start hrm again and see if confidence is still high enough
//TODO actualy do something with this data