aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-07-10 07:45:25 -0700
committerAnton Tananaev <anton@traccar.org>2024-07-10 07:45:25 -0700
commit12a6b088cc478f1b2aff363534c87ca0a6a27815 (patch)
tree138fbfb6fd23d281f3aca828ba45b2ba9f29b8ee /src/main/java/org/traccar
parentb1a8f303c90f087dcefdabfd06c3d312aa1f6212 (diff)
downloadtrackermap-server-12a6b088cc478f1b2aff363534c87ca0a6a27815.tar.gz
trackermap-server-12a6b088cc478f1b2aff363534c87ca0a6a27815.tar.bz2
trackermap-server-12a6b088cc478f1b2aff363534c87ca0a6a27815.zip
No response for AP12 result
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/TrvProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java b/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
index 2f2b7d8c2..e39b17307 100644
--- a/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TrvProtocolDecoder.java
@@ -180,7 +180,7 @@ public class TrvProtocolDecoder extends BaseProtocolDecoder {
channel.writeAndFlush(new NetworkMessage(responseHeader + "," + time + ",0#", remoteAddress));
} else if (type.equals("AP14")) {
channel.writeAndFlush(new NetworkMessage(responseHeader + ",0.000,0.000#", remoteAddress));
- } else if (!sentence.substring(responseHeader.length() + 1).matches("^\\d{6}$")) {
+ } else if (!type.equals("AP12") && !sentence.substring(responseHeader.length() + 1).matches("^\\d{6}$")) {
channel.writeAndFlush(new NetworkMessage(responseHeader + "#", remoteAddress));
}
}