aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-02-22 08:27:32 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-02-22 08:27:32 +1300
commit3d7d201b33081ae08a6c6b95ba339f34cc6961c9 (patch)
treeb4dbe8d83359ea9ec21d75fd442e7d3f299dd379 /src/org
parent8d6c4e2747c08180fef6f1de0b1207c9a6fbcdb1 (diff)
downloadtrackermap-server-3d7d201b33081ae08a6c6b95ba339f34cc6961c9.tar.gz
trackermap-server-3d7d201b33081ae08a6c6b95ba339f34cc6961c9.tar.bz2
trackermap-server-3d7d201b33081ae08a6c6b95ba339f34cc6961c9.zip
Fix TMG unit tests
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/TmgProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/TmgProtocolDecoder.java b/src/org/traccar/protocol/TmgProtocolDecoder.java
index 1a03267b5..40ce04c5b 100644
--- a/src/org/traccar/protocol/TmgProtocolDecoder.java
+++ b/src/org/traccar/protocol/TmgProtocolDecoder.java
@@ -61,8 +61,8 @@ public class TmgProtocolDecoder extends BaseProtocolDecoder {
.expression("([01]+),") // input
.expression("([01]+),") // output
.expression("[01]+,") // temper status
- .number("(d+.?d*),") // adc1
- .number("(d+.?d*),") // adc2
+ .number("(d+.?d*)[^,]*,") // adc1
+ .number("(d+.?d*)[^,]*,") // adc2
.number("d+.?d*,") // trip meter
.expression("([^,]*),") // software version
.expression("([^,]*),").optional() // rfid