aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-10-17 11:23:02 +0900
committerAnton Tananaev <anton.tananaev@gmail.com>2019-10-17 11:36:55 +0900
commit05c304a8bb54bac4cbb7118be9add82f6daa1151 (patch)
tree2b1f31f361119dba0e698a6137cceca85634e82e /src/main/java/org
parent812e65bc6a96fdb6d9d384a9e7679795f528146c (diff)
downloadtraccar-server-05c304a8bb54bac4cbb7118be9add82f6daa1151.tar.gz
traccar-server-05c304a8bb54bac4cbb7118be9add82f6daa1151.tar.bz2
traccar-server-05c304a8bb54bac4cbb7118be9add82f6daa1151.zip
Support new message type
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/WatchProtocolDecoder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
index 3f2156dc2..0647afdee 100644
--- a/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/WatchProtocolDecoder.java
@@ -249,8 +249,7 @@ public class WatchProtocolDecoder extends BaseProtocolDecoder {
}
}
- } else if (type.equals("UD") || type.equals("UD2") || type.equals("UD3")
- || type.equals("AL") || type.equals("WT")) {
+ } else if (type.startsWith("UD") || type.equals("AL") || type.equals("WT")) {
Position position = decodePosition(deviceSession, buf.toString(StandardCharsets.US_ASCII));