forked from ddrilling/AsbCloudServer
Fix DetectedOperationService "Index was outside the bounds of the array" wile skipping
This commit is contained in:
parent
2f5dfaae36
commit
b4406338db
@ -237,12 +237,9 @@ public class DetectedOperationService : IDetectedOperationService
|
||||
break;
|
||||
}
|
||||
|
||||
var skip = 1;
|
||||
|
||||
while (IsChangingTelemetryInterval(detectableTelemetries[positionBegin], detectableTelemetries[positionBegin + skip]))
|
||||
skip++;
|
||||
|
||||
positionBegin += skip;
|
||||
var point0 = detectableTelemetries[positionBegin];
|
||||
while (positionBegin < positionEnd && IsChangingTelemetryInterval(point0, detectableTelemetries[++positionBegin]))
|
||||
;
|
||||
}
|
||||
|
||||
return (detectableTelemetries[positionBegin].DateTime, detectedOperations);
|
||||
|
Loading…
Reference in New Issue
Block a user