diff options
author | Anton Tananaev <anton@traccar.org> | 2022-12-20 15:47:22 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-12-20 15:47:22 -0800 |
commit | 0a8273d87ab5fd4270aab6000d6cefa1472bb024 (patch) | |
tree | ac1b129dfbd0e64818f2364f8412470a5d81d95f /src/main | |
parent | 3fa8f496eab4a3a6e9bfac4a8a8ab9b0456720e0 (diff) | |
download | trackermap-server-0a8273d87ab5fd4270aab6000d6cefa1472bb024.tar.gz trackermap-server-0a8273d87ab5fd4270aab6000d6cefa1472bb024.tar.bz2 trackermap-server-0a8273d87ab5fd4270aab6000d6cefa1472bb024.zip |
Watch general alarm (fix #5006)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/WatchProtocolDecoder.java | 3 |
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"); } |