aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java b/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java
index be8de448d..7976b825f 100644
--- a/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Tlt2hProtocolDecoder.java
@@ -194,7 +194,7 @@ public class Tlt2hProtocolDecoder extends BaseProtocolDecoder {
boolean isPositionValid = parser.next().equals("A");
position.setValid(isPositionValid);
- if(isPositionValid) {
+ if (isPositionValid) {
position.setLatitude(parser.nextCoordinate());
position.setLongitude(parser.nextCoordinate());
position.setSpeed(parser.nextDouble(0));
@@ -204,8 +204,8 @@ public class Tlt2hProtocolDecoder extends BaseProtocolDecoder {
}
dateBuilder.setDateReverse(parser.nextInt(), parser.nextInt(), parser.nextInt());
-
- if(isPositionValid) {
+
+ if (isPositionValid) {
position.setTime(dateBuilder.getDate());
} else {
getLastLocation(position, dateBuilder.getDate());