aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-04 14:46:43 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-04 14:46:43 +1200
commit1e6448f0e25fb95b35b23a67517274481b11ca9e (patch)
tree55451de331090873dd52aa9f15631015e1d25977 /src/org/traccar
parent857163e61297af69f59f970c9bb5deee24033ea6 (diff)
downloadtrackermap-server-1e6448f0e25fb95b35b23a67517274481b11ca9e.tar.gz
trackermap-server-1e6448f0e25fb95b35b23a67517274481b11ca9e.tar.bz2
trackermap-server-1e6448f0e25fb95b35b23a67517274481b11ca9e.zip
Trim Castel device id
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/CastelProtocolDecoder.java2
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) {