aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorwkhaksar <31837615+wkhaksar@users.noreply.github.com>2023-01-06 12:39:34 +0000
committerwkhaksar <31837615+wkhaksar@users.noreply.github.com>2023-01-06 12:39:34 +0000
commitc1cbda022e33d56e9f77a9e26da59e88061c469f (patch)
treeba06945e364f7eda99de88d39df59df1fac26a8e /src/main/java/org/traccar
parent7978a2a1349c3d89d79553c3fe703e4ea0559d32 (diff)
downloadtrackermap-server-c1cbda022e33d56e9f77a9e26da59e88061c469f.tar.gz
trackermap-server-c1cbda022e33d56e9f77a9e26da59e88061c469f.tar.bz2
trackermap-server-c1cbda022e33d56e9f77a9e26da59e88061c469f.zip
style-fixed
Diffstat (limited to 'src/main/java/org/traccar')
-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());