aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-07-11 21:22:00 -0700
committerGitHub <noreply@github.com>2020-07-11 21:22:00 -0700
commitec21a2b8c2cc6acd6b0872b67aa0daccdb191321 (patch)
treec04f8f14a600ddc2ce20b194725888a30978b43c
parentde0064122862373c1a5154f0e84863d4f45670ed (diff)
parent33e52d21803ccdd2de23c887b099047e49b24b6d (diff)
downloadtrackermap-server-ec21a2b8c2cc6acd6b0872b67aa0daccdb191321.tar.gz
trackermap-server-ec21a2b8c2cc6acd6b0872b67aa0daccdb191321.tar.bz2
trackermap-server-ec21a2b8c2cc6acd6b0872b67aa0daccdb191321.zip
Merge pull request #4561 from matias-riv/teltonika-codec12-ack
[Teltonika] Fix wrong ACK on codec 12 and 13
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
index 10cf1bee3..40b769869 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaProtocolDecoder.java
@@ -624,7 +624,7 @@ public class TeltonikaProtocolDecoder extends BaseProtocolDecoder {
}
}
- if (channel != null) {
+ if (channel != null && codec != CODEC_12 && codec != CODEC_13) {
if (connectionless) {
ByteBuf response = Unpooled.buffer();
response.writeShort(5);