aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-25 11:09:03 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-25 11:09:03 -0800
commitc69b4524fc003613bb70ef98fe99fd6b26277661 (patch)
tree101be331e5a4ae80a4cdb058b91bcf692bda63aa /src/main/java
parentfabe54f1e90a068ed2db756ec6fc5d724c705e45 (diff)
downloadtrackermap-server-c69b4524fc003613bb70ef98fe99fd6b26277661.tar.gz
trackermap-server-c69b4524fc003613bb70ef98fe99fd6b26277661.tar.bz2
trackermap-server-c69b4524fc003613bb70ef98fe99fd6b26277661.zip
Update BLE support
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
index 5b04992ec..c38fd740d 100644
--- a/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/Minifinder2ProtocolDecoder.java
@@ -175,13 +175,10 @@ public class Minifinder2ProtocolDecoder extends BaseProtocolDecoder {
}
break;
case 0x23:
- if (endIndex > buf.readerIndex()) {
- buf.skipBytes(6); // mac
- }
- if (endIndex > buf.readerIndex()) {
- position.setLatitude(buf.readIntLE() * 0.0000001);
- position.setLongitude(buf.readIntLE() * 0.0000001);
- }
+ position.set("tagId", ByteBufUtil.hexDump(buf.readSlice(6)));
+ position.setLatitude(buf.readIntLE() * 0.0000001);
+ position.setLongitude(buf.readIntLE() * 0.0000001);
+ hasLocation = true;
break;
case 0x24:
position.setTime(new Date(buf.readUnsignedIntLE() * 1000));