aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-01-02 15:01:37 -0800
committerAnton Tananaev <anton@traccar.org>2023-01-02 15:01:37 -0800
commit2ed386ecd1fa6b51cf3115fe6fe4626ebfceea31 (patch)
treeb12aef8ea8674c5f6cdcfb583266d5f8910b8f32 /src/main
parentaa6db4e57ceb30377678c5c563c4992161de0ffe (diff)
downloadtrackermap-server-2ed386ecd1fa6b51cf3115fe6fe4626ebfceea31.tar.gz
trackermap-server-2ed386ecd1fa6b51cf3115fe6fe4626ebfceea31.tar.bz2
trackermap-server-2ed386ecd1fa6b51cf3115fe6fe4626ebfceea31.zip
Handle T55 new line
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/T55ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/T55ProtocolDecoder.java b/src/main/java/org/traccar/protocol/T55ProtocolDecoder.java
index 51f06a801..3be161fb8 100644
--- a/src/main/java/org/traccar/protocol/T55ProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/T55ProtocolDecoder.java
@@ -365,7 +365,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
protected Object decode(
Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {
- String sentence = (String) msg;
+ String sentence = ((String) msg).trim();
DeviceSession deviceSession;