aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorThiritin <me@thiritin.com>2021-06-22 20:14:44 +0200
committerThiritin <me@thiritin.com>2021-06-22 20:14:44 +0200
commit741ec70faa97305eea8d95e261af5e3f1a5d77d4 (patch)
treee4051803b4ec29afe2a9787377af6a3a2de67bab /src/main/java/org/traccar
parentacc947ffd409d70dddd1ad3624210dfc3da2a1ea (diff)
downloadtraccar-server-741ec70faa97305eea8d95e261af5e3f1a5d77d4.tar.gz
traccar-server-741ec70faa97305eea8d95e261af5e3f1a5d77d4.tar.bz2
traccar-server-741ec70faa97305eea8d95e261af5e3f1a5d77d4.zip
Make altitude optional
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java b/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java
index 706307d89..f0ff4a4c4 100644
--- a/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java
@@ -246,7 +246,7 @@ public class MegastekProtocolDecoder extends BaseProtocolDecoder {
.number("(d+.d+),") // hdop
.number("(d+.d+)?,") // speed
.number("(d+.d+)?,") // course
- .number("(-?d+.d+),") // altitude
+ .number("(-?d+.d+)?,") // altitude
.number("(d+.d+)?,") // odometer
.number("(d+),") // mcc
.number("(d+),") // mnc