From 9cd715dffe8efdcb6c3e87fa56e1c67f7cd870d5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 5 Feb 2019 18:53:49 -0800 Subject: Fix GPS103 course decoding --- src/org/traccar/protocol/Gps103ProtocolDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/org/traccar/protocol') 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(); -- cgit v1.2.3