aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-06-22 22:27:52 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-06-22 22:27:52 -0700
commite2ec2d17b751dc3f3b829cee8693999d9ed08f40 (patch)
tree38c3e15925774da23268e65963ae7af8233e3757 /src/main/java
parentf2c949998733734543be2ec795b2aa9b909b0044 (diff)
downloadtraccar-server-e2ec2d17b751dc3f3b829cee8693999d9ed08f40.tar.gz
traccar-server-e2ec2d17b751dc3f3b829cee8693999d9ed08f40.tar.bz2
traccar-server-e2ec2d17b751dc3f3b829cee8693999d9ed08f40.zip
Handle negative altitude values
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java
index 992b5c43a..652ba3f6a 100644
--- a/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java
@@ -54,7 +54,7 @@ public class MictrackProtocolDecoder extends BaseProtocolDecoder {
.expression("([EW]),")
.number("(d+.?d*)?,") // speed
.number("(d+.?d*)?,") // course
- .number("(d+.?d*)?,") // altitude
+ .number("(-?d+.?d*)?,") // altitude
.number("(dd)(dd)(dd)") // date (ddmmyy)
.compile();