From 1498b5c5a00c575ba67dce2dcfac0d77a8b4964a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 16 Apr 2017 14:53:05 +1200 Subject: Fix H02 status code decoding --- src/org/traccar/protocol/H02ProtocolDecoder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/org') 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(); -- cgit v1.2.3