aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-13 10:15:43 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-13 10:15:43 +1300
commit6da19dd5926bceec8d648072e48d828bdce30e8e (patch)
tree040ee46258348c5b6eea4f2d65d65045397943e8 /src/org/traccar
parenta789d3992ec5c5918a122c284fe46e4f1e26b746 (diff)
downloadtrackermap-server-6da19dd5926bceec8d648072e48d828bdce30e8e.tar.gz
trackermap-server-6da19dd5926bceec8d648072e48d828bdce30e8e.tar.bz2
trackermap-server-6da19dd5926bceec8d648072e48d828bdce30e8e.zip
Handle negative altitude value
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/WialonProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/WialonProtocolDecoder.java b/src/org/traccar/protocol/WialonProtocolDecoder.java
index 7939c7b67..de7073b67 100644
--- a/src/org/traccar/protocol/WialonProtocolDecoder.java
+++ b/src/org/traccar/protocol/WialonProtocolDecoder.java
@@ -47,7 +47,7 @@ public class WialonProtocolDecoder extends BaseProtocolDecoder {
.expression("([EW]);")
.number("(d+.?d*)?;") // speed
.number("(d+.?d*)?;") // course
- .number("(?:NA|(d+.?d*));") // altitude
+ .number("(?:NA|(-?d+.?d*));") // altitude
.number("(?:NA|(d+))") // satellites
.groupBegin().text(";")
.number("(?:NA|(d+.?d*));") // hdop