aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-16 14:53:05 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-16 14:53:05 +1200
commit1498b5c5a00c575ba67dce2dcfac0d77a8b4964a (patch)
tree5a3746b585e524b1f2a306b1009b30988fe314ea /src
parent5c127eee77815eabc5c99ee45b2767a0e61553a9 (diff)
downloadtraccar-server-1498b5c5a00c575ba67dce2dcfac0d77a8b4964a.tar.gz
traccar-server-1498b5c5a00c575ba67dce2dcfac0d77a8b4964a.tar.bz2
traccar-server-1498b5c5a00c575ba67dce2dcfac0d77a8b4964a.zip
Fix H02 status code decoding
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/H02ProtocolDecoder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/H02ProtocolDecoder.java b/src/org/traccar/protocol/H02ProtocolDecoder.java
index b78f21d8d..465bf8395 100644
--- a/src/org/traccar/protocol/H02ProtocolDecoder.java
+++ b/src/org/traccar/protocol/H02ProtocolDecoder.java
@@ -184,7 +184,9 @@ public class H02ProtocolDecoder extends BaseProtocolDecoder {
.number("(d+),")
.number("(d+)#")
.or()
- .any()
+ .expression(",.*")
+ .or()
+ .text("#")
.groupEnd()
.compile();