aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-23 11:49:28 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-23 11:49:28 +1200
commite176392ddbea44dc94c0904f21338a11b862ad4d (patch)
tree33b0fe820068470a68741ed51b897fe6db5ee496 /src
parent83d2fdc694ca75eaef53adef76dad938e1bd6262 (diff)
downloadtraccar-server-e176392ddbea44dc94c0904f21338a11b862ad4d.tar.gz
traccar-server-e176392ddbea44dc94c0904f21338a11b862ad4d.tar.bz2
traccar-server-e176392ddbea44dc94c0904f21338a11b862ad4d.zip
Improve GpsGate protocol decoder
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/GpsGateProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/GpsGateProtocolDecoder.java b/src/org/traccar/protocol/GpsGateProtocolDecoder.java
index 1cb0ddfde..afc17a9f7 100644
--- a/src/org/traccar/protocol/GpsGateProtocolDecoder.java
+++ b/src/org/traccar/protocol/GpsGateProtocolDecoder.java
@@ -58,10 +58,10 @@ public class GpsGateProtocolDecoder extends BaseProtocolDecoder {
.expression("([EW]),")
.number("(d+.?d*),") // altitude
.number("(d+.?d*),") // speed
- .number("(d+.?d*),") // course
+ .number("(d+.?d*)?,") // course
.number("(dd)(dd)(dd),") // date (ddmmyy)
.number("(dd)(dd)(dd).?(d+)?,") // time
- .expression("([01]),") // validity
+ .expression("([01])") // validity
.any()
.compile();