diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-07 17:25:27 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-07 17:25:27 -0700 |
commit | 3b62f3c29e181f6c3aefbfeff24281ed3332562e (patch) | |
tree | 00c40b172df4d14079327768753830d61931dec5 /src/main/java/org/traccar | |
parent | 57ff7a02db797ad377df8a7b65e96e8768aed438 (diff) | |
download | trackermap-server-3b62f3c29e181f6c3aefbfeff24281ed3332562e.tar.gz trackermap-server-3b62f3c29e181f6c3aefbfeff24281ed3332562e.tar.bz2 trackermap-server-3b62f3c29e181f6c3aefbfeff24281ed3332562e.zip |
Fix alarm response
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/protocol/WatchProtocolDecoder.java | 2 |
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); } |