aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorjfunston83 <jfunston@gmail.com>2019-10-26 16:09:40 -0600
committerGitHub <noreply@github.com>2019-10-26 16:09:40 -0600
commitb5814bb9a2bd9f29bda1ece1bd51ae0ad07c076d (patch)
treed5fd0eaccc6efdb941861b865f83126243bfdb79 /src/main/java
parentff65e0c1b1fa8da85e61d8d66f3cdd416b68088c (diff)
downloadtrackermap-server-b5814bb9a2bd9f29bda1ece1bd51ae0ad07c076d.tar.gz
trackermap-server-b5814bb9a2bd9f29bda1ece1bd51ae0ad07c076d.tar.bz2
trackermap-server-b5814bb9a2bd9f29bda1ece1bd51ae0ad07c076d.zip
Update DmtProtocolDecoder.java
Fixed to use engine hours attribute. DMT devices send these values in seconds, converted to ms for the Hours values.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/DmtProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java b/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java
index 1dfa6bcd7..63c120eed 100644
--- a/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/DmtProtocolDecoder.java
@@ -191,13 +191,13 @@ public class DmtProtocolDecoder extends BaseProtocolDecoder {
} else if (fieldId == 27) {
position.set(Position.KEY_ODOMETER, buf.readUnsignedIntLE());
- position.set("DeviceRunTime", buf.readUnsignedIntLE());
+ position.set(Position.KEY_HOURS, buf.readUnsignedIntLE() * 1000);
} else if (fieldId == 26) {
position.set(Position.KEY_ODOMETER_TRIP, buf.readUnsignedIntLE());
- position.set("TripRunTime", buf.readUnsignedIntLE());
+ position.set("TripHours", buf.readUnsignedIntLE() * 1000);
} else if (fieldId == 6) {