From 2ed7fb6e8f04c8fcee0e600446deaeda6cd4a86f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 25 Nov 2020 21:01:42 -0800 Subject: Fix ack response --- src/main/java/org/traccar/protocol/TaipProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java b/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java index 0878e65af..f543ccdb3 100644 --- a/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/TaipProtocolDecoder.java @@ -308,7 +308,7 @@ public class TaipProtocolDecoder extends BaseProtocolDecoder { if (channel != null) { if (messageIndex != null) { String response; - if (messageIndex.startsWith("#IP:")) { + if (messageIndex.startsWith("#IP")) { response = ">SAK;ID=" + uniqueId + ";" + messageIndex + "<"; } else { response = ">ACK;ID=" + uniqueId + ";" + messageIndex + ";*"; -- cgit v1.2.3