diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-11-05 23:47:10 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-11-05 23:47:10 -0800 |
commit | 56cf856e0d08b32d7b637b066e0f735209d86e21 (patch) | |
tree | dd52f96dbf0a41525d68d59a3ae3366559ccf630 /src/main/java/org/traccar/protocol | |
parent | a41841ac8ce200aa0c3836f4c35ce4524eef077c (diff) | |
download | traccar-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/protocol')
-rw-r--r-- | src/main/java/org/traccar/protocol/SuntechProtocolDecoder.java | 2 |
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 } |