diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2012-09-05 22:28:14 +0400 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2012-09-05 22:28:14 +0400 |
commit | 54927aef2dec0bb540699f9c1cfc5e2554f0abf1 (patch) | |
tree | 7e0aa317aa05f79c1c448ac7f083ad7fa775c7d9 /src/org/traccar/protocol | |
parent | 6060bff2be43a704926f4673acc71eb507518193 (diff) | |
download | traccar-server-54927aef2dec0bb540699f9c1cfc5e2554f0abf1.tar.gz traccar-server-54927aef2dec0bb540699f9c1cfc5e2554f0abf1.tar.bz2 traccar-server-54927aef2dec0bb540699f9c1cfc5e2554f0abf1.zip |
Added additional tests
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/Gps103ProtocolDecoder.java | 2 |
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 |