From 0d33868866b1d4dee89b6dff756bbbacfd58508f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 26 Jan 2021 22:35:23 -0800 Subject: Support another TK103 format --- src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/org/traccar') diff --git a/src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java b/src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java index 69fff5310..5dad1458d 100644 --- a/src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/Tk103ProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 - 2020 Anton Tananaev (anton@traccar.org) + * Copyright 2012 - 2021 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -64,7 +64,7 @@ public class Tk103ProtocolDecoder extends BaseProtocolDecoder { .expression("([NS]),?") .number(" *(d+)(dd.d+)") // longitude .expression("([EW]),?") - .number(" *(d+.d)(?:d*,)?") // speed + .number("([ d.]{1,5})(?:d*,)?") // speed .number("(dd)(dd)(dd),?") // time (hhmmss) .groupBegin() .number("(?:([ d.]{6})|(dd)),?") // course -- cgit v1.2.3