aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-05 17:12:08 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-05 17:12:08 -0700
commit715499d5eabf73bdd1684bcf87006d904c92414b (patch)
tree1557eaea4748d395e8d3f5f0acf84222e29f7503 /src/main/java/org
parent0b463a40998baf05cc84cb4400ab58e6e11c909d (diff)
downloadtrackermap-server-715499d5eabf73bdd1684bcf87006d904c92414b.tar.gz
trackermap-server-715499d5eabf73bdd1684bcf87006d904c92414b.tar.bz2
trackermap-server-715499d5eabf73bdd1684bcf87006d904c92414b.zip
Trim Suntech serial data
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
index 938d290c0..52fdaa05c 100644
--- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -400,7 +400,7 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
}
}
} else {
- position.set("serial", attribute);
+ position.set("serial", attribute.trim());
}
remaining -= attribute.length() + 1;
}