aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authore-macgregor <122734173+e-macgregor@users.noreply.github.com>2023-01-15 08:29:04 -0600
committerGitHub <noreply@github.com>2023-01-15 08:29:04 -0600
commit922f2f26f880c92b984435987319d46750d929a0 (patch)
treec88455c8a652d4abf505f982f691c449be06d3b6 /src/main/java
parent4f9c8cca508d4e07823e7fd4c9e4911f042ea63f (diff)
downloadtrackermap-server-922f2f26f880c92b984435987319d46750d929a0.tar.gz
trackermap-server-922f2f26f880c92b984435987319d46750d929a0.tar.bz2
trackermap-server-922f2f26f880c92b984435987319d46750d929a0.zip
Added missing "StatusReq"
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java b/src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java
index b298adc5a..a4faacf13 100644
--- a/src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java
+++ b/src/main/java/org/traccar/protocol/SuntechProtocolEncoder.java
@@ -99,7 +99,7 @@ public class SuntechProtocolEncoder extends StringProtocolEncoder {
case Command.TYPE_REBOOT_DEVICE:
return formatCommand(command, prefix + "CMD;%s;02;Reboot\r", Command.KEY_UNIQUE_ID);
case Command.TYPE_POSITION_SINGLE:
- return formatCommand(command, prefix + "CMD;%s;02;\r", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, prefix + "CMD;%s;02;StatusReq\r", Command.KEY_UNIQUE_ID);
case Command.TYPE_OUTPUT_CONTROL:
if (command.getAttributes().get(Command.KEY_DATA).equals("1")) {
return formatCommand(command, prefix + "CMD;%s;02;Enable%s\r",