aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Gps103ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-11-15 22:24:40 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2012-11-15 22:24:40 +1300
commit113d83778acdff9288d8e68e54275bc73e8dbdc4 (patch)
treeb28c6325419d71712258ceccb0c1041f0e3a96ac /src/org/traccar/protocol/Gps103ProtocolDecoder.java
parent3ee4d2fba538eee4d1774bd79e07c64dc0af97e5 (diff)
downloadtrackermap-server-113d83778acdff9288d8e68e54275bc73e8dbdc4.tar.gz
trackermap-server-113d83778acdff9288d8e68e54275bc73e8dbdc4.tar.bz2
trackermap-server-113d83778acdff9288d8e68e54275bc73e8dbdc4.zip
Fix pt502 protocol (fix #90)
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 4c8c4255c..1f19b56e4 100644
--- a/src/org/traccar/protocol/Gps103ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gps103ProtocolDecoder.java
@@ -22,6 +22,7 @@ import java.util.regex.Pattern;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.traccar.GenericProtocolDecoder;
+import org.traccar.helper.Log;
import org.traccar.model.DataManager;
import org.traccar.model.Position;
@@ -81,6 +82,7 @@ public class Gps103ProtocolDecoder extends GenericProtocolDecoder {
// Parse message
Matcher parser = pattern.matcher(sentence);
if (!parser.matches()) {
+ Log.info("Parsing error");
return null;
}