aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorMatias Rivera <matiasrivera3@gmail.com>2020-07-11 23:27:44 -0400
committerMatias Rivera <matiasrivera3@gmail.com>2020-07-11 23:27:44 -0400
commit3ec1abb314f8c70fd5b163f4e263c499e511512d (patch)
tree029e0a0291670de8f1be375053b9aafb5aca7b94 /src/main/java/org
parentde0064122862373c1a5154f0e84863d4f45670ed (diff)
downloadtrackermap-server-3ec1abb314f8c70fd5b163f4e263c499e511512d.tar.gz
trackermap-server-3ec1abb314f8c70fd5b163f4e263c499e511512d.tar.bz2
trackermap-server-3ec1abb314f8c70fd5b163f4e263c499e511512d.zip
Update TeltonikaProtocolDecoder.java
Fix wrong ACK sent when using codec12 or codec13. No ACK is needed at all.
Diffstat (limited to 'src/main/java/org')
-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..fbac5abaf 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);