aboutsummaryrefslogtreecommitdiff
path: root/src/org
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
parent7ae0d8de4b5c78e9265a9a5cbb5b19ef19a4f017 (diff)
downloadtraccar-server-b2ed61db9d33324222c7cbdc5a133152ede0c1ac.tar.gz
traccar-server-b2ed61db9d33324222c7cbdc5a133152ede0c1ac.tar.bz2
traccar-server-b2ed61db9d33324222c7cbdc5a133152ede0c1ac.zip
Decode hex driver id
Diffstat (limited to 'src/org')
-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));