- // find first high sample
- if (!startFound && sample > T55xx_UPPER_THRESHOLD) {
- if (sample > firstSample)
- firstSample = sample;
- highFound = TRUE;
+ // skip until the first high sample above threshold
+ if (!startFound && curSample > T55xx_READ_UPPER_THRESHOLD) {
+ if (curSample > firstSample)
+ firstSample = curSample;
+ highFound = true;