aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-29 11:43:46 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-29 11:43:46 +1200
commitddaaec2660f42ac51cdaaeb030fca92899fee0dc (patch)
tree1b2820fdbbc1348560e0f14bb84ed7333667d599 /src/org/traccar
parenta10e925a97cf839a5c30fb7891af12bc111b14c4 (diff)
downloadtrackermap-server-ddaaec2660f42ac51cdaaeb030fca92899fee0dc.tar.gz
trackermap-server-ddaaec2660f42ac51cdaaeb030fca92899fee0dc.tar.bz2
trackermap-server-ddaaec2660f42ac51cdaaeb030fca92899fee0dc.zip
Fix GPS103 command encoder
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolEncoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolEncoder.java b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
index 5972ccb59..967914811 100644
--- a/src/org/traccar/protocol/Gps103ProtocolEncoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolEncoder.java
@@ -46,9 +46,9 @@ public class Gps103ProtocolEncoder extends StringProtocolEncoder implements Stri
case Command.TYPE_POSITION_FIX:
return formatCommand(command, "**,{%s},C,{%s};", this, Command.KEY_UNIQUE_ID, Command.KEY_FREQUENCY);
case Command.TYPE_ENGINE_STOP:
- return formatCommand(command, "**,{%s},K;", Command.KEY_UNIQUE_ID);
- case Command.TYPE_ENGINE_RESUME:
return formatCommand(command, "**,{%s},J;", Command.KEY_UNIQUE_ID);
+ case Command.TYPE_ENGINE_RESUME:
+ return formatCommand(command, "**,{%s},K;", Command.KEY_UNIQUE_ID);
}
return null;