aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/GatorProtocolDecoder.java2
-rw-r--r--src/main/java/org/traccar/protocol/GatorProtocolEncoder.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/GatorProtocolDecoder.java b/src/main/java/org/traccar/protocol/GatorProtocolDecoder.java
index 90fd5d0c6..0202ed7d0 100644
--- a/src/main/java/org/traccar/protocol/GatorProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/GatorProtocolDecoder.java
@@ -38,7 +38,7 @@ public class GatorProtocolDecoder extends BaseProtocolDecoder {
public static final int MSG_HEARTBEAT = 0x21;
public static final int MSG_POSITION_REQUEST = 0x30;
- public static final int MSG_SET_POSITION_REQUEST_INTERVAL = 0x34;
+ public static final int MSG_POSITION_PERIODIC = 0x34;
public static final int MSG_SET_SPEED_LIMIT = 0x3F;
public static final int MSG_SET_ODOMETER = 0x6B;
public static final int MSG_RESTORES_THE_OIL_DUCT = 0x38;
diff --git a/src/main/java/org/traccar/protocol/GatorProtocolEncoder.java b/src/main/java/org/traccar/protocol/GatorProtocolEncoder.java
index 570dd269a..d613b30c2 100644
--- a/src/main/java/org/traccar/protocol/GatorProtocolEncoder.java
+++ b/src/main/java/org/traccar/protocol/GatorProtocolEncoder.java
@@ -91,7 +91,7 @@ public class GatorProtocolEncoder extends BaseProtocolEncoder {
content.writeShort(command.getInteger(Command.KEY_ENGINE_ON_INTERVAL));
content.writeShort(command.getInteger(Command.KEY_ENGINE_OFF_INTERVAL));
content.writeByte(command.getInteger(Command.KEY_HEARTBEAT_INTERVAL));
- return encodeContent(command.getDeviceId(), GatorProtocolDecoder.MSG_SET_POSITION_REQUEST_INTERVAL, content);
+ return encodeContent(command.getDeviceId(), GatorProtocolDecoder.MSG_POSITION_PERIODIC, content);
default:
return null;
}