aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-03-09 14:21:19 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-03-09 14:21:19 +1300
commitb7898abf1be64a2f9750d1020b20e9ed578d61e9 (patch)
treed07cffa01ab218a17547926a7b4e143e3c8c16a9 /src
parent3d95782613b6f586434c66f45216a788fa3199db (diff)
downloadtraccar-server-b7898abf1be64a2f9750d1020b20e9ed578d61e9.tar.gz
traccar-server-b7898abf1be64a2f9750d1020b20e9ed578d61e9.tar.bz2
traccar-server-b7898abf1be64a2f9750d1020b20e9ed578d61e9.zip
Minor OpenGts protocol cleanup
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/OpenGtsProtocol.java2
-rw-r--r--src/org/traccar/protocol/OpenGtsProtocolDecoder.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/OpenGtsProtocol.java b/src/org/traccar/protocol/OpenGtsProtocol.java
index 2a20cb159..a0246ba1b 100644
--- a/src/org/traccar/protocol/OpenGtsProtocol.java
+++ b/src/org/traccar/protocol/OpenGtsProtocol.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 Anton Tananaev (anton@traccar.org)
+ * Copyright 2018 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.
diff --git a/src/org/traccar/protocol/OpenGtsProtocolDecoder.java b/src/org/traccar/protocol/OpenGtsProtocolDecoder.java
index 9be69ed7f..ba8f434d8 100644
--- a/src/org/traccar/protocol/OpenGtsProtocolDecoder.java
+++ b/src/org/traccar/protocol/OpenGtsProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 - 2017 Anton Tananaev (anton@traccar.org)
+ * Copyright 2018 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.
@@ -35,14 +35,14 @@ public class OpenGtsProtocolDecoder extends BaseHttpProtocolDecoder {
private static final Pattern PATTERN = new PatternBuilder()
.text("$GPRMC,")
- .number("(dd)(dd)(dd),") // time (hhmmss)
+ .number("(dd)(dd)(dd),") // time (hhmmss)
.expression("([AV]),") // validity
.number("(d+)(dd.d+),") // latitude
.expression("([NS]),")
.number("(d+)(dd.d+),") // longitude
.expression("([EW]),")
.number("(d+.d+),") // speed
- .number("(d+.d+),") // course
+ .number("(d+.d+),") // course
.number("(dd)(dd)(dd),") // date (ddmmyy)
.any()
.compile();