aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/AtrackFrameDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-10-08 18:23:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-10-08 18:23:47 -0700
commit3c9db2f713de21292a1109004f141744b789a660 (patch)
treef34d5ddc2d406846fb9df80bfbb4d53504b1052f /src/main/java/org/traccar/protocol/AtrackFrameDecoder.java
parent8f8d013c9d871eba003bcf34cb62f9d48fb3ee20 (diff)
downloadtrackermap-server-3c9db2f713de21292a1109004f141744b789a660.tar.gz
trackermap-server-3c9db2f713de21292a1109004f141744b789a660.tar.bz2
trackermap-server-3c9db2f713de21292a1109004f141744b789a660.zip
Atrack camera support
Diffstat (limited to 'src/main/java/org/traccar/protocol/AtrackFrameDecoder.java')
-rw-r--r--src/main/java/org/traccar/protocol/AtrackFrameDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/AtrackFrameDecoder.java b/src/main/java/org/traccar/protocol/AtrackFrameDecoder.java
index f071e2d97..8ed1fc8e8 100644
--- a/src/main/java/org/traccar/protocol/AtrackFrameDecoder.java
+++ b/src/main/java/org/traccar/protocol/AtrackFrameDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2017 - 2018 Anton Tananaev (anton@traccar.org)
+ * Copyright 2017 - 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.
@@ -39,7 +39,7 @@ public class AtrackFrameDecoder extends BaseFrameDecoder {
return buf.readRetainedSlice(KEEPALIVE_LENGTH);
}
- } else if (buf.getUnsignedShort(buf.readerIndex()) == 0x4050 && buf.getByte(buf.readerIndex() + 2) != ',') {
+ } else if (buf.getUnsignedByte(buf.readerIndex()) == 0x40 && buf.getByte(buf.readerIndex() + 2) != ',') {
if (buf.readableBytes() > 6) {
int length = buf.getUnsignedShort(buf.readerIndex() + 4) + 4 + 2;