aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-25 08:48:53 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-25 08:48:53 -0800
commit146a4c1c0d9c4e80454d9ed382db226af41670a0 (patch)
tree022c7b6d7521b5a682e7451a2d7e5b2a794ff5b5 /src/main/java/org/traccar
parentcdf892cd39c528929284728562beef3220e91cf3 (diff)
downloadtrackermap-server-146a4c1c0d9c4e80454d9ed382db226af41670a0.tar.gz
trackermap-server-146a4c1c0d9c4e80454d9ed382db226af41670a0.tar.bz2
trackermap-server-146a4c1c0d9c4e80454d9ed382db226af41670a0.zip
Fix OKO decoding (fix #4609)
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/protocol/OkoProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/OkoProtocolDecoder.java b/src/main/java/org/traccar/protocol/OkoProtocolDecoder.java
index 4d9c9afc4..fa35ab455 100644
--- a/src/main/java/org/traccar/protocol/OkoProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/OkoProtocolDecoder.java
@@ -49,8 +49,8 @@ public class OkoProtocolDecoder extends BaseProtocolDecoder {
.number("(d+.d+|xx),") // adc
.number("(xx),") // event
.number("(d+.d+|xx),") // power
- .number("d,") // memory status
- .number("(xx)?") // io
+ .number("d") // memory status
+ .number(",(xx)").optional() // io
.any()
.compile();