From 1e6448f0e25fb95b35b23a67517274481b11ca9e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 4 Jun 2015 14:46:43 +1200 Subject: Trim Castel device id --- src/org/traccar/protocol/CastelProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/CastelProtocolDecoder.java b/src/org/traccar/protocol/CastelProtocolDecoder.java index 0b00c050e..fbba960a5 100644 --- a/src/org/traccar/protocol/CastelProtocolDecoder.java +++ b/src/org/traccar/protocol/CastelProtocolDecoder.java @@ -76,7 +76,7 @@ public class CastelProtocolDecoder extends BaseProtocolDecoder { position.setDeviceId(getDeviceId()); position.setProtocol(getProtocol()); - if (!identify(id.toString(Charset.defaultCharset()))) { + if (!identify(id.toString(Charset.defaultCharset()).trim())) { return null; } else if (type == MSG_LOGIN) { -- cgit v1.2.3