aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorstefanclark <stefanclark@users.noreply.github.com>2022-07-21 21:56:49 +0100
committerGitHub <noreply@github.com>2022-07-21 21:56:49 +0100
commitdf974772a6cab1f1bdbad4c6b19e150c2ca3ccf6 (patch)
tree96934f82a0820008fb44cfecff9657114933a626 /src/main/java
parentbf9b8c9562587476a919e095a4adc6c00bb2cba8 (diff)
downloadtrackermap-server-df974772a6cab1f1bdbad4c6b19e150c2ca3ccf6.tar.gz
trackermap-server-df974772a6cab1f1bdbad4c6b19e150c2ca3ccf6.tar.bz2
trackermap-server-df974772a6cab1f1bdbad4c6b19e150c2ca3ccf6.zip
Update Xexun2ProtocolDecoder.java
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java
index 42fa7d8f2..47d86aeb1 100644
--- a/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Xexun2ProtocolDecoder.java
@@ -183,7 +183,7 @@ public class Xexun2ProtocolDecoder extends BaseProtocolDecoder {
buf.skipBytes(2); // length = 27
position.setLongitude(convertCoordinate(buf.readDouble()));
position.setLatitude(convertCoordinate(buf.readDouble()));
- position.setValid(buf.readUnsignedByte()>0); // 0=invalid,1=normal,2=sub-meter,3=differential
+ position.setValid(buf.readUnsignedByte() > 0); // 0=invalid,1=normal,2=sub-meter,3=differential
position.set(Position.KEY_SATELLITES, buf.readUnsignedByte());
buf.skipBytes(1); // SNR
position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShort() * 0.1));