aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-11 14:01:17 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-11 14:01:17 +1200
commit44c4476c49fedb2aa139359284130e2d9eb61e64 (patch)
tree1dec857080906cade25f63cf4e6ba296ff0af7b8 /src/org/traccar
parente7f589516ebdca245bf01c253b44ff708f723b07 (diff)
downloadtrackermap-server-44c4476c49fedb2aa139359284130e2d9eb61e64.tar.gz
trackermap-server-44c4476c49fedb2aa139359284130e2d9eb61e64.tar.bz2
trackermap-server-44c4476c49fedb2aa139359284130e2d9eb61e64.zip
Remove semicolon from commands (fix #1345)
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolEncoder.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolEncoder.java b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
index 308fb0820..50a15350a 100644
--- a/src/org/traccar/protocol/Gps103ProtocolEncoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
@@ -42,19 +42,19 @@ public class Gps103ProtocolEncoder extends StringProtocolEncoder implements Stri
switch (command.getType()) {
case Command.TYPE_POSITION_STOP:
- return formatCommand(command, "**,imei:{%s},A;", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},A", Command.KEY_UNIQUE_ID);
case Command.TYPE_POSITION_SINGLE:
- return formatCommand(command, "**,imei:{%s},B;", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},B", Command.KEY_UNIQUE_ID);
case Command.TYPE_POSITION_PERIODIC:
- return formatCommand(command, "**,imei:{%s},C,{%s};", this, Command.KEY_UNIQUE_ID, Command.KEY_FREQUENCY);
+ return formatCommand(command, "**,imei:{%s},C,{%s}", this, Command.KEY_UNIQUE_ID, Command.KEY_FREQUENCY);
case Command.TYPE_ENGINE_STOP:
return formatCommand(command, "**,imei:{%s},J;", Command.KEY_UNIQUE_ID);
case Command.TYPE_ENGINE_RESUME:
- return formatCommand(command, "**,imei:{%s},K;", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},K", Command.KEY_UNIQUE_ID);
case Command.TYPE_ALARM_ARM:
- return formatCommand(command, "**,imei:{%s},L;", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},L", Command.KEY_UNIQUE_ID);
case Command.TYPE_ALARM_DISARM:
- return formatCommand(command, "**,imei:{%s},M;", Command.KEY_UNIQUE_ID);
+ return formatCommand(command, "**,imei:{%s},M", Command.KEY_UNIQUE_ID);
}
return null;