there is a bug in firmware 3.80 vivoactive HR where getMax() and getMin return wrong values. It started with firmware 3.80.
I'm not sure how to reproduce it.
The following code return different results:
hrmax=sensorIter.getMax();
hrmin=sensorIter.getMin();
and
for (x=147;x>=0;x--) {
sample = sensorIter.next();
if( null != sample ) {
if( sample.data != null) {
if(sample.data<hrmin) {hrmin=sample.data;}
if(sample.data>hrmax) {hrmax=sample.data;}
}
}
}
In some case, the hrmin and hrmax from getMax and getMin return outdated results.
Everything is ok in the simulator.