aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-10-09 08:14:47 +0800
committerAnton Tananaev <anton.tananaev@gmail.com>2017-10-09 08:14:47 +0800
commitb2ed61db9d33324222c7cbdc5a133152ede0c1ac (patch)
treee9b8157a245d638f103b2da97773aa05c950a882 /src/org/traccar
parent7ae0d8de4b5c78e9265a9a5cbb5b19ef19a4f017 (diff)
downloadtrackermap-server-b2ed61db9d33324222c7cbdc5a133152ede0c1ac.tar.gz
trackermap-server-b2ed61db9d33324222c7cbdc5a133152ede0c1ac.tar.bz2
trackermap-server-b2ed61db9d33324222c7cbdc5a133152ede0c1ac.zip
Decode hex driver id
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/TeltonikaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
index ddc113816..80f0045d5 100644
--- a/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -132,7 +132,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.PREFIX_TEMP + 3, readValue(buf, length, true) * 0.1);
break;
case 78:
- position.set(Position.KEY_DRIVER_UNIQUE_ID, String.valueOf(readValue(buf, length, false)));
+ position.set(Position.KEY_DRIVER_UNIQUE_ID, String.format("%016X", readValue(buf, length, false)));
break;
case 80:
position.set("workMode", readValue(buf, length, false));