aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-12-20 15:47:22 -0800
committerAnton Tananaev <anton@traccar.org>2022-12-20 15:47:22 -0800
commit0a8273d87ab5fd4270aab6000d6cefa1472bb024 (patch)
treeac1b129dfbd0e64818f2364f8412470a5d81d95f /src/main/java/org/traccar/protocol
parent3fa8f496eab4a3a6e9bfac4a8a8ab9b0456720e0 (diff)
downloadtrackermap-server-0a8273d87ab5fd4270aab6000d6cefa1472bb024.tar.gz
trackermap-server-0a8273d87ab5fd4270aab6000d6cefa1472bb024.tar.bz2
trackermap-server-0a8273d87ab5fd4270aab6000d6cefa1472bb024.zip
Watch general alarm (fix #5006)
Diffstat (limited to 'src/main/java/org/traccar/protocol')
-rw-r--r--src/main/java/org/traccar/protocol/WatchProtocolDecoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
index a71c5606d..142d1b64f 100644
--- a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
@@ -263,6 +263,9 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
Position position = decodePosition(deviceSession, buf.toString(StandardCharsets.US_ASCII));
if (type.startsWith("AL")) {
+ if (position != null) {
+ position.set(Position.KEY_ALARM, Position.ALARM_GENERAL);
+ }
sendResponse(channel, id, index, "AL");
}