aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-08-07 17:25:27 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-08-07 17:25:27 -0700
commit3b62f3c29e181f6c3aefbfeff24281ed3332562e (patch)
tree00c40b172df4d14079327768753830d61931dec5 /src
parent57ff7a02db797ad377df8a7b65e96e8768aed438 (diff)
downloadtrackermap-server-3b62f3c29e181f6c3aefbfeff24281ed3332562e.tar.gz
trackermap-server-3b62f3c29e181f6c3aefbfeff24281ed3332562e.tar.bz2
trackermap-server-3b62f3c29e181f6c3aefbfeff24281ed3332562e.zip
Fix alarm response
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/protocol/WatchProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
index 7f70e9fff..72d4bf8b9 100644
--- a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
@@ -252,7 +252,7 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
Position position = decodePosition(deviceSession, buf.toString(StandardCharsets.US_ASCII));
- if (type.equals("AL")) {
+ if (type.startsWith("AL")) {
if (position != null) {
position.set(Position.KEY_ALARM, Position.ALARM_SOS);
}