aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-12-16 07:48:13 -0800
committerAnton Tananaev <anton@traccar.org>2023-12-16 07:48:13 -0800
commit4dc2e86ae5e403143b3c4e2c1a3bd671dfeaf5f8 (patch)
tree857bc0ccf91e7376715ecbe08d2fed84e2c1d9da /src/main
parentfa71241a3c93f1210e5f30fc4195477ad35986ae (diff)
downloadtrackermap-server-4dc2e86ae5e403143b3c4e2c1a3bd671dfeaf5f8.tar.gz
trackermap-server-4dc2e86ae5e403143b3c4e2c1a3bd671dfeaf5f8.tar.bz2
trackermap-server-4dc2e86ae5e403143b3c4e2c1a3bd671dfeaf5f8.zip
Better Suntech driver id support
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
index 86a8bf6fe..53c4a5d02 100644
--- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -454,9 +454,10 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
if (values.length - index >= 2) {
String driverUniqueId = values[index++];
- if (values[index++].equals("1") && !driverUniqueId.isEmpty()) {
+ if (!driverUniqueId.isEmpty()) {
position.set(Position.KEY_DRIVER_UNIQUE_ID, driverUniqueId);
}
+ index += 1; // registered
}
if (isIncludeTemp(deviceSession.getDeviceId())) {