From 741ec70faa97305eea8d95e261af5e3f1a5d77d4 Mon Sep 17 00:00:00 2001 From: Thiritin Date: Tue, 22 Jun 2021 20:14:44 +0200 Subject: Make altitude optional --- src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org') 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 -- cgit v1.2.3