aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-29 10:32:02 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-29 10:32:02 -0800
commit2c399d684178dc0a22b1c8e50ad6eff000c41062 (patch)
treec7d52891c79502312c38b26b2d5e4fc8ac25fcc2 /src/main/java/org/traccar
parentc61ba32c01aa1b5e723ee913d0a573d2e1ba73b6 (diff)
downloadtrackermap-server-2c399d684178dc0a22b1c8e50ad6eff000c41062.tar.gz
trackermap-server-2c399d684178dc0a22b1c8e50ad6eff000c41062.tar.bz2
trackermap-server-2c399d684178dc0a22b1c8e50ad6eff000c41062.zip
Detect binary messages
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
index 601d127f1..f9fcfe79d 100644
--- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -625,7 +625,7 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
ByteBuf buf = (ByteBuf) msg;
- if (buf.getByte(buf.readerIndex()) == (byte) 0x81) {
+ if (buf.getByte(buf.readerIndex() + 1) == 0) {
return decodeBinary(channel, remoteAddress, buf);