aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/XexunFrameDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/XexunFrameDecoder.java')
-rw-r--r--src/org/traccar/protocol/XexunFrameDecoder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/XexunFrameDecoder.java b/src/org/traccar/protocol/XexunFrameDecoder.java
index 2dd9dad7d..1b3446ff9 100644
--- a/src/org/traccar/protocol/XexunFrameDecoder.java
+++ b/src/org/traccar/protocol/XexunFrameDecoder.java
@@ -38,7 +38,10 @@ public class XexunFrameDecoder extends FrameDecoder {
// Find start
Integer beginIndex = ChannelBufferTools.find(buf, 0, length, "GPRMC");
if (beginIndex == null) {
- return null;
+ beginIndex = ChannelBufferTools.find(buf, 0, length, "GNRMC");
+ if (beginIndex == null) {
+ return null;
+ }
}
// Find identifier