diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-04 14:46:43 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-04 14:46:43 +1200 |
commit | 1e6448f0e25fb95b35b23a67517274481b11ca9e (patch) | |
tree | 55451de331090873dd52aa9f15631015e1d25977 /src/org | |
parent | 857163e61297af69f59f970c9bb5deee24033ea6 (diff) | |
download | trackermap-server-1e6448f0e25fb95b35b23a67517274481b11ca9e.tar.gz trackermap-server-1e6448f0e25fb95b35b23a67517274481b11ca9e.tar.bz2 trackermap-server-1e6448f0e25fb95b35b23a67517274481b11ca9e.zip |
Trim Castel device id
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/CastelProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |