aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-04 22:31:39 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-04 22:31:39 -0700
commitc86d0579edf97d21adb57b80b0b1b677fc34858e (patch)
tree7b71537cf0e223362dda5b30dffec9b3e29ed4d7 /src/main/java/org/traccar
parentb3c2d3ab3f1c77f989af1a42154d999b024df2fe (diff)
downloadtrackermap-server-c86d0579edf97d21adb57b80b0b1b677fc34858e.tar.gz
trackermap-server-c86d0579edf97d21adb57b80b0b1b677fc34858e.tar.bz2
trackermap-server-c86d0579edf97d21adb57b80b0b1b677fc34858e.zip
Decode missing parameters
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
index b8ab134c5..08f49c9ee 100644
--- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2019 Anton Tananaev (anton@traccar.org)
+ * Copyright 2019 - 2020 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -169,6 +169,10 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder {
position.set(Position.KEY_BATTERY_LEVEL, BitUtil.from(status, 24));
position.set(Position.KEY_STATUS, status);
break;
+ case 0x30:
+ buf.readUnsignedInt(); // timestamp
+ position.set(Position.KEY_STEPS, buf.readUnsignedInt());
+ break;
case 0x40:
buf.readUnsignedIntLE(); // timestamp
int heartRate = buf.readUnsignedByte();