aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-30 21:22:25 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-30 21:22:25 +1200
commitb372786bc73aa3f3f89b3a321585bd95c81d0031 (patch)
tree173177fc46e5433c9cb3daec59d8eb75fbdf42ba /src/org/traccar/protocol
parent8a866049c73636f6f25ff59550da8c5445e7c8fc (diff)
downloadtraccar-server-b372786bc73aa3f3f89b3a321585bd95c81d0031.tar.gz
traccar-server-b372786bc73aa3f3f89b3a321585bd95c81d0031.tar.bz2
traccar-server-b372786bc73aa3f3f89b3a321585bd95c81d0031.zip
More Megastek decoder improvements
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/MegastekProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/MegastekProtocolDecoder.java b/src/org/traccar/protocol/MegastekProtocolDecoder.java
index 81349ce3e..a330947b1 100644
--- a/src/org/traccar/protocol/MegastekProtocolDecoder.java
+++ b/src/org/traccar/protocol/MegastekProtocolDecoder.java
@@ -241,9 +241,9 @@ public class MegastekProtocolDecoder extends BaseProtocolDecoder {
.number("(dd),") // satellites
.number("dd,")
.number("(d+.d+),") // hdop
- .number("(d+.d+),") // speed
- .number("(d+.d+),") // course
- .number("(d+.d+),") // altitude
+ .number("(d+.d+)?,") // speed
+ .number("(d+.d+)?,") // course
+ .number("(-?d+.d+),") // altitude
.number("(d+.d+)?,") // odometer
.number("(d+),") // mcc
.number("(d+),") // mnc