aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/Tlt2hProtocolDecoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Tlt2hProtocolDecoder.java b/src/org/traccar/protocol/Tlt2hProtocolDecoder.java
index c8671bc54..e4e6cb300 100644
--- a/src/org/traccar/protocol/Tlt2hProtocolDecoder.java
+++ b/src/org/traccar/protocol/Tlt2hProtocolDecoder.java
@@ -62,6 +62,7 @@ public class Tlt2hProtocolDecoder extends BaseProtocolDecoder {
throws Exception {
String sentence = (String) msg;
+ sentence = sentence.trim();
// Decode header
String header = sentence.substring(0, sentence.indexOf('\r'));