aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-12-29 07:44:12 -0800
committerAnton Tananaev <anton@traccar.org>2023-12-29 07:44:12 -0800
commit3b9333bec68898b08894b999b6f95c39e7e21f08 (patch)
tree5adf9468b52ae9478a33a35b1241b22f1fbe8ddb
parent0b3842c7df86f603853149746f65b41a085830c9 (diff)
downloadtrackermap-server-3b9333bec68898b08894b999b6f95c39e7e21f08.tar.gz
trackermap-server-3b9333bec68898b08894b999b6f95c39e7e21f08.tar.bz2
trackermap-server-3b9333bec68898b08894b999b6f95c39e7e21f08.zip
Add Meitrack engine hours
-rw-r--r--src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
index 1235ca9fe..c37d1fe47 100644
--- a/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MeitrackProtocolDecoder.java
@@ -534,6 +534,9 @@ public class MeitrackProtocolDecoder extends BaseProtocolDecoder {
case 0xA2:
position.set(Position.KEY_FUEL_CONSUMPTION, buf.readUnsignedIntLE() * 0.01);
break;
+ case 0xFEF4:
+ position.set(Position.KEY_HOURS, buf.readUnsignedIntLE() * 60000);
+ break;
default:
buf.readUnsignedIntLE();
break;