diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-01-16 08:59:58 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-01-16 09:00:15 -0800 |
commit | 4c7383d227ea4bea29739676972416de40a19cd8 (patch) | |
tree | 6a727ff6da0d821c6ae9b505e7a3aa8377e443f1 /src/main/java/org | |
parent | a5a4a31a8826998ff479294ea3885dd4a124f3e8 (diff) | |
download | trackermap-server-4c7383d227ea4bea29739676972416de40a19cd8.tar.gz trackermap-server-4c7383d227ea4bea29739676972416de40a19cd8.tar.bz2 trackermap-server-4c7383d227ea4bea29739676972416de40a19cd8.zip |
Support negative altitude (fix #4471)
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java index aa02e8ad4..e00d83061 100644 --- a/src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Gps103ProtocolDecoder.java @@ -77,7 +77,7 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder { .expression("([EW])?,").optional() .number("(d+.?d*)?").optional() // speed .number(",(d+.?d*)?").optional() // course - .number(",(d+.?d*)?").optional() // altitude + .number(",(-?d+.?d*)?").optional() // altitude .number(",([01])?").optional() // ignition .number(",([01])?").optional() // door .groupBegin() |