aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-11-05 23:47:10 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-11-05 23:47:10 -0800
commit56cf856e0d08b32d7b637b066e0f735209d86e21 (patch)
treedd52f96dbf0a41525d68d59a3ae3366559ccf630 /src/main/java/org/traccar
parenta41841ac8ce200aa0c3836f4c35ce4524eef077c (diff)
downloadtraccar-server-56cf856e0d08b32d7b637b066e0f735209d86e21.tar.gz
traccar-server-56cf856e0d08b32d7b637b066e0f735209d86e21.tar.bz2
traccar-server-56cf856e0d08b32d7b637b066e0f735209d86e21.zip
Support Suntech ST390 protocol
Diffstat (limited to 'src/main/java/org/traccar')
-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 cd0b3d363..951a5e17b 100644
--- a/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java
@@ -272,7 +272,7 @@ public class SuntechProtocolDecoder extends BaseProtocolDecoder {
position.setDeviceId(deviceSession.getDeviceId());
position.set(Position.KEY_TYPE, type);
- if (protocol.equals("ST300") || protocol.equals("ST500") || protocol.equals("ST600")) {
+ if (protocol.startsWith("ST3") || protocol.equals("ST500") || protocol.equals("ST600")) {
index += 1; // model
}