From 3b62f3c29e181f6c3aefbfeff24281ed3332562e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 7 Aug 2021 17:25:27 -0700 Subject: Fix alarm response --- src/main/java/org/traccar/protocol/WatchProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3