From 377822c54373e2ccef485d54482114a661cb926c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 17 Dec 2014 22:50:23 +1300 Subject: Check for device id --- src/org/traccar/protocol/EelinkProtocolDecoder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/org/traccar/protocol/EelinkProtocolDecoder.java b/src/org/traccar/protocol/EelinkProtocolDecoder.java index 009baebd0..e63189dae 100644 --- a/src/org/traccar/protocol/EelinkProtocolDecoder.java +++ b/src/org/traccar/protocol/EelinkProtocolDecoder.java @@ -99,10 +99,11 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder { } } - else if (type == MSG_GPS || + else if (deviceId != null && + (type == MSG_GPS || type == MSG_ALARM || type == MSG_STATE || - type == MSG_SMS) { + type == MSG_SMS)) { // Create new position Position position = new Position(); -- cgit v1.2.3