fix end detection

This commit is contained in:
sonora 2015-09-23 22:05:18 +02:00
parent c2f680b344
commit 14fa680c43

View file

@ -299,8 +299,9 @@ public class GPXUtilities {
channelBase = channelBottom;
channelTop = point.ele;
climb = true;
}
// End detection without breakout
} else if (j == numberOfPoints -1) {
if (j == (numberOfPoints -1)) {
if ((channelTop - channelBase) >= channelThres) {
diffElevationUp += channelTop - channelBase;
}