aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gps103ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-05 18:53:49 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-05 18:53:49 -0800
commit9cd715dffe8efdcb6c3e87fa56e1c67f7cd870d5 (patch)
tree2a30b05aba8cb48d6e7a607b3c155d63a022037f /src/org/traccar/protocol/Gps103ProtocolDecoder.java
parent6810c4c75fd2f7c388b0b8058f6c327ae15ca53e (diff)
downloadtrackermap-server-9cd715dffe8efdcb6c3e87fa56e1c67f7cd870d5.tar.gz
trackermap-server-9cd715dffe8efdcb6c3e87fa56e1c67f7cd870d5.tar.bz2
trackermap-server-9cd715dffe8efdcb6c3e87fa56e1c67f7cd870d5.zip
Fix GPS103 course decoding
Diffstat (limited to 'src/org/traccar/protocol/Gps103ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
index 27b94739b..aa02e8ad4 100644
--- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
@@ -81,10 +81,10 @@ public class Gps103ProtocolDecoder extends BaseProtocolDecoder {
.number(",([01])?").optional() // ignition
.number(",([01])?").optional() // door
.groupBegin()
- .number(",(?:(d+.d+)%)?") // fuel 1
- .number(",(?:(d+.d+)%|d+)?") // fuel 2
+ .number(",(?:(d+.d+)%)?") // fuel 1
+ .number(",(?:(d+.d+)%|d+)?") // fuel 2
.groupEnd("?")
- .number(",([-+]?d+)?") // temperature
+ .number(",([-+]?d+)?").optional() // temperature
.groupEnd()
.any()
.compile();