aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseym45 <seym45@gmail.com>2023-08-22 02:30:27 +0400
committerseym45 <seym45@gmail.com>2023-08-22 02:30:27 +0400
commit0b1b54428a6f3cc66dd1aed57de05545e4e7d30a (patch)
tree91811bba76a6e778012aa25d57997e3849470131
parent75064707c6432cc4918eab573ac3ce9d6eee1d94 (diff)
downloadtrackermap-server-0b1b54428a6f3cc66dd1aed57de05545e4e7d30a.tar.gz
trackermap-server-0b1b54428a6f3cc66dd1aed57de05545e4e7d30a.tar.bz2
trackermap-server-0b1b54428a6f3cc66dd1aed57de05545e4e7d30a.zip
Reset MSG_SET_POSITION_REQUEST_INTERVAL to MSG_POSITION_PERIODIC
- As the Line is longer than 120 characters, changed the variable name to fix the issue
-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;
}