aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorThiritin <me@thiritin.com>2021-06-22 18:05:45 +0200
committerGitHub <noreply@github.com>2021-06-22 18:05:45 +0200
commit35f15c94da399c479d1b5987043178a59cbd8b35 (patch)
treefaa6c84026635e973a3708616e527354cb77fed8 /src/main/java
parentf2c949998733734543be2ec795b2aa9b909b0044 (diff)
downloadtraccar-server-35f15c94da399c479d1b5987043178a59cbd8b35.tar.gz
traccar-server-35f15c94da399c479d1b5987043178a59cbd8b35.tar.bz2
traccar-server-35f15c94da399c479d1b5987043178a59cbd8b35.zip
Make it optional
Diffstat (limited to 'src/main/java')
-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 fae73d931..706307d89 100644
--- a/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/MegastekProtocolDecoder.java
@@ -276,7 +276,7 @@ public class MegastekProtocolDecoder extends BaseProtocolDecoder {
.groupEnd("?").text(",")
.number("(d+)?,") // rfid
.number("([01])(d)?").optional() // charge and belt status
- .expression("[^,]*,")
+ .expression("[^,]*,").optional()
.number("(d+)?,") // battery
.expression("([^,]*)[,;]") // alert
.any()