aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/V680ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-06-03 13:36:41 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-06-03 13:36:41 +1200
commit6ef9ed9b15eeb5c1ac2da721475ea0a871268b90 (patch)
tree9af325d637b577ef6c88b39ee66031645e90bc47 /src/org/traccar/protocol/V680ProtocolDecoder.java
parent6ac5e8cef0be902b7067c6d9c4b30c4740d3dffd (diff)
parent8896a8fc4091b8d42ec0601360a482ee6c4271a1 (diff)
downloadtrackermap-server-6ef9ed9b15eeb5c1ac2da721475ea0a871268b90.tar.gz
trackermap-server-6ef9ed9b15eeb5c1ac2da721475ea0a871268b90.tar.bz2
trackermap-server-6ef9ed9b15eeb5c1ac2da721475ea0a871268b90.zip
Merge pull request #740 from 31neKl31n3N4chtmu51k/fixesForV680
Trim message in V680 decoder
Diffstat (limited to 'src/org/traccar/protocol/V680ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/V680ProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/V680ProtocolDecoder.java b/src/org/traccar/protocol/V680ProtocolDecoder.java
index ffdbaeb99..ab70b477e 100644
--- a/src/org/traccar/protocol/V680ProtocolDecoder.java
+++ b/src/org/traccar/protocol/V680ProtocolDecoder.java
@@ -60,7 +60,8 @@ public class V680ProtocolDecoder extends BaseProtocolDecoder {
throws Exception {
String sentence = (String) msg;
-
+ sentence = sentence.trim();
+
// Detect device ID
if (sentence.length() == 16) {
String imei = sentence.substring(1, sentence.length());