aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gps103ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-09-05 22:28:14 +0400
committerAnton Tananaev <anton.tananaev@gmail.com>2012-09-05 22:28:14 +0400
commit54927aef2dec0bb540699f9c1cfc5e2554f0abf1 (patch)
tree7e0aa317aa05f79c1c448ac7f083ad7fa775c7d9 /src/org/traccar/protocol/Gps103ProtocolDecoder.java
parent6060bff2be43a704926f4673acc71eb507518193 (diff)
downloadtrackermap-server-54927aef2dec0bb540699f9c1cfc5e2554f0abf1.tar.gz
trackermap-server-54927aef2dec0bb540699f9c1cfc5e2554f0abf1.tar.bz2
trackermap-server-54927aef2dec0bb540699f9c1cfc5e2554f0abf1.zip
Added additional tests
Diffstat (limited to 'src/org/traccar/protocol/Gps103ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Gps103ProtocolDecoder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/Gps103ProtocolDecoder.java b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
index 88a83ef80..2578065c1 100644
--- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
@@ -68,11 +68,13 @@ public class Gps103ProtocolDecoder extends GenericProtocolDecoder {
// Send response #1
if (sentence.contains("##")) {
channel.write("LOAD");
+ return null;
}
// Send response #2
if (sentence.length() == 15 && Character.isDigit(sentence.charAt(0))) {
channel.write("ON");
+ return null;
}
// Parse message