From c0b737b3a8b3a5bb2a383e14d3ae5c14a5260781 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 2 Feb 2019 00:35:53 -0800 Subject: Fix TR20 decoder --- src/org/traccar/protocol/Tr20ProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/Tr20ProtocolDecoder.java b/src/org/traccar/protocol/Tr20ProtocolDecoder.java index 6c7b689a6..c2e6c381f 100644 --- a/src/org/traccar/protocol/Tr20ProtocolDecoder.java +++ b/src/org/traccar/protocol/Tr20ProtocolDecoder.java @@ -52,7 +52,7 @@ public class Tr20ProtocolDecoder extends BaseProtocolDecoder { .number("(ddd)(dd.d+),") // longitude .number("(d+),") // speed .number("(d+),") // course - .number("(?:NA|[FC](-?d+)),") // temperature + .number("(?:NA|[FC]?(-?d+)),") // temperature .number("(x{8}),") // status .number("(d+)") // event .any() -- cgit v1.2.3