aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/VisiontekProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/VisiontekProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/VisiontekProtocolDecoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/VisiontekProtocolDecoder.java b/src/org/traccar/protocol/VisiontekProtocolDecoder.java
index 236f417e3..abb94ea3a 100644
--- a/src/org/traccar/protocol/VisiontekProtocolDecoder.java
+++ b/src/org/traccar/protocol/VisiontekProtocolDecoder.java
@@ -28,7 +28,7 @@ import org.traccar.model.Position;
public class VisiontekProtocolDecoder extends BaseProtocolDecoder {
- public VisiontekProtocolDecoder(String protocol) {
+ public VisiontekProtocolDecoder(VisiontekProtocol protocol) {
super(protocol);
}
@@ -70,14 +70,14 @@ public class VisiontekProtocolDecoder extends BaseProtocolDecoder {
// Create new position
Position position = new Position();
- position.setProtocol(getProtocol());
+ position.setProtocol(getProtocolName());
Integer index = 1;
// Device identification
String id = parser.group(index++);
String imei = parser.group(index++);
- if (!identify(id, false) && !identify(imei)) {
+ if (!identify(id, channel, null, false) && !identify(imei, channel)) {
return null;
}
position.setDeviceId(getDeviceId());