diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-06-22 22:27:52 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-06-22 22:27:52 -0700 |
commit | e2ec2d17b751dc3f3b829cee8693999d9ed08f40 (patch) | |
tree | 38c3e15925774da23268e65963ae7af8233e3757 /src/main | |
parent | f2c949998733734543be2ec795b2aa9b909b0044 (diff) | |
download | trackermap-server-e2ec2d17b751dc3f3b829cee8693999d9ed08f40.tar.gz trackermap-server-e2ec2d17b751dc3f3b829cee8693999d9ed08f40.tar.bz2 trackermap-server-e2ec2d17b751dc3f3b829cee8693999d9ed08f40.zip |
Handle negative altitude values
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/traccar/protocol/MictrackProtocolDecoder.java | 2 |
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(); |