From 54927aef2dec0bb540699f9c1cfc5e2554f0abf1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 5 Sep 2012 22:28:14 +0400 Subject: Added additional tests --- src/org/traccar/protocol/Gps103ProtocolDecoder.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 -- cgit v1.2.3