aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/protocol/Gt06ProtocolDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Gt06ProtocolDecoder.java b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
index b3a69c274..44cc5a16d 100644
--- a/src/org/traccar/protocol/Gt06ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Gt06ProtocolDecoder.java
@@ -118,11 +118,12 @@ public class Gt06ProtocolDecoder extends BaseProtocolDecoder {
}
- else if (type == MSG_GPS ||
+ else if (deviceId != null && (
+ type == MSG_GPS ||
type == MSG_GPS_LBS ||
type == MSG_GPS_LBS_STATUS ||
type == MSG_GPS_PHONE ||
- type == MSG_GPS_LBS_EXTEND) {
+ type == MSG_GPS_LBS_EXTEND)) {
// Create new position
Position position = new Position();