aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-10-05 08:38:46 +0900
committerAnton Tananaev <anton.tananaev@gmail.com>2017-10-05 08:38:46 +0900
commit662cbd6f1b2c0eae0bbc59fe9341c043f5b7872a (patch)
treec0573999b62279cba57cb3c757303db864939b27 /src
parent81e6d5825615fbe0be253e500b2c997f304349e6 (diff)
downloadtrackermap-server-662cbd6f1b2c0eae0bbc59fe9341c043f5b7872a.tar.gz
trackermap-server-662cbd6f1b2c0eae0bbc59fe9341c043f5b7872a.tar.bz2
trackermap-server-662cbd6f1b2c0eae0bbc59fe9341c043f5b7872a.zip
Make some parameters optional
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/CradlepointProtocolDecoder.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/CradlepointProtocolDecoder.java b/src/org/traccar/protocol/CradlepointProtocolDecoder.java
index a1b42edf9..67a140cf7 100644
--- a/src/org/traccar/protocol/CradlepointProtocolDecoder.java
+++ b/src/org/traccar/protocol/CradlepointProtocolDecoder.java
@@ -40,11 +40,11 @@ public class CradlepointProtocolDecoder extends BaseProtocolDecoder {
.expression("([EW]),")
.number("(d+.d+)?,") // speed
.number("(d+.d+)?,") // course
- .expression("([^,]+),") // carrier
+ .expression("([^,]+)?,") // carrier
.expression("([^,]+)?,") // serdis
- .number("(-?d+),") // rsrp
- .number("(-?d+),") // rssi
- .number("(-?d+),") // rsrq
+ .number("(-?d+)?,") // rsrp
+ .number("(-?d+)?,") // rssi
+ .number("(-?d+)?,") // rsrq
.expression("([^,]+)?,") // ecio
.expression("([^,]+)?") // wan ip
.compile();