diff options
Diffstat (limited to 'src/org/traccar')
-rw-r--r-- | src/org/traccar/reports/ReportUtils.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/reports/ReportUtils.java b/src/org/traccar/reports/ReportUtils.java index 91dc2e019..75f300b1d 100644 --- a/src/org/traccar/reports/ReportUtils.java +++ b/src/org/traccar/reports/ReportUtils.java @@ -304,8 +304,7 @@ public final class ReportUtils { int startTripIndex = -1; int startParkingIndex = deviceState.getMotionState() ? -1 : 0; for (int i = 0; i < positions.size(); i++) { - boolean isMoving = isMoving(positions, i, tripsConfig, speedThreshold); - positions.get(i).set(Position.KEY_MOTION, isMoving); + positions.get(i).set(Position.KEY_MOTION, isMoving(positions, i, tripsConfig, speedThreshold)); Event event = motionHandler.updateMotionState(deviceState, positions.get(i)); if (startParkingIndex == -1 && deviceState.getMotionState() && deviceState.getMotionPosition() != null) { |