aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/protocol/H02FrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/H02FrameDecoder.java b/src/org/traccar/protocol/H02FrameDecoder.java
index 82e3201f7..b1793825e 100644
--- a/src/org/traccar/protocol/H02FrameDecoder.java
+++ b/src/org/traccar/protocol/H02FrameDecoder.java
@@ -34,7 +34,7 @@ public class H02FrameDecoder extends FrameDecoder {
String marker = buf.toString(buf.readerIndex(), 1, Charset.defaultCharset());
- while ((marker.equals(" ") || marker.equals("\r") || marker.equals("\n")) && buf.readableBytes() > 0) {
+ while (!marker.equals("*") && !marker.equals("$") && buf.readableBytes() > 0) {
buf.skipBytes(1);
marker = buf.toString(buf.readerIndex(), 1, Charset.defaultCharset());
}