aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-06-03 22:33:07 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-06-03 22:33:07 +1200
commit59e4bf0a8581a168b0f355551244dc45128cba7c (patch)
tree4a7f0a052165cb645ee907ac46cb7efc998e2f05 /src/org
parent6ef9ed9b15eeb5c1ac2da721475ea0a871268b90 (diff)
downloadtrackermap-server-59e4bf0a8581a168b0f355551244dc45128cba7c.tar.gz
trackermap-server-59e4bf0a8581a168b0f355551244dc45128cba7c.tar.bz2
trackermap-server-59e4bf0a8581a168b0f355551244dc45128cba7c.zip
Fix Xexun2 decoder pattern
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/Xexun2ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Xexun2ProtocolDecoder.java b/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
index 6e040d2bc..d974ce227 100644
--- a/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Xexun2ProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012 - 2013 Anton Tananaev (anton.tananaev@gmail.com)
+ * Copyright 2012 - 2014 Anton Tananaev (anton.tananaev@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ public class Xexun2ProtocolDecoder extends BaseProtocolDecoder {
static private Pattern pattern = Pattern.compile(
"[\r\n]*" +
"(\\d+)," + // Serial
- "(\\+?\\d+)?," + // Number
+ "([^,]+)?," + // Number
"GPRMC," +
"(\\d{2})(\\d{2})(\\d{2})\\.(\\d+)," + // Time (HHMMSS.SSS)
"([AV])," + // Validity