aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-05-03 13:51:56 -0700
committerAnton Tananaev <anton@traccar.org>2024-05-03 13:51:56 -0700
commit93828126208b569b360fedecb1e87b4ed809b298 (patch)
treef3025e6a28619fd6aa3100e5f921aaeee2e60cc8 /src/main/java/org
parent3f9248d602e8a35ff74cc9481cf1979961f51c5e (diff)
downloadtrackermap-server-93828126208b569b360fedecb1e87b4ed809b298.tar.gz
trackermap-server-93828126208b569b360fedecb1e87b4ed809b298.tar.bz2
trackermap-server-93828126208b569b360fedecb1e87b4ed809b298.zip
Fix Teltonika driver id
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index c8a944980..de42031d7 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -232,7 +232,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
register(75, fmbXXX, (p, b) -> p.set(Position.PREFIX_TEMP + 4, b.readInt() * 0.1));
register(78, null, (p, b) -> {
long driverUniqueId = b.readLongLE();
- if (driverUniqueId > 0) {
+ if (driverUniqueId != 0) {
p.set(Position.KEY_DRIVER_UNIQUE_ID, String.format("%016X", driverUniqueId));
}
});