aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-16 22:38:03 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-16 22:38:03 +1300
commit4d9157995627d6a6ba226e01e8580edcfb1e682b (patch)
tree763f9cb14edb6eebdb5358faa7d54b5e236f8c14 /src/org
parent4b36a0f1b95c1a4f4f12442d7cf075626b8fdbef (diff)
downloadtraccar-server-4d9157995627d6a6ba226e01e8580edcfb1e682b.tar.gz
traccar-server-4d9157995627d6a6ba226e01e8580edcfb1e682b.tar.bz2
traccar-server-4d9157995627d6a6ba226e01e8580edcfb1e682b.zip
Fix GoSafe protocol decoder
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/GoSafeProtocolDecoder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/org/traccar/protocol/GoSafeProtocolDecoder.java
index d32322d48..cba045122 100644
--- a/src/org/traccar/protocol/GoSafeProtocolDecoder.java
+++ b/src/org/traccar/protocol/GoSafeProtocolDecoder.java
@@ -64,11 +64,14 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder {
.xpr(",?")
.groupEnd(false)
.groupBegin()
+ .txt("GSM:").not(",").xpr(",?")
+ .groupEnd(true)
+ .groupBegin()
.txt("COT:")
.num("(d+)") // odometer
.opn(";d+:d+:d+") // engine hours
.xpr(",?")
- .groupEnd(false)
+ .groupEnd(true)
.groupBegin()
.txt("ADC:")
.num("(d+.d+);") // power