aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/protocol/EelinkProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/EelinkProtocolDecoder.java b/src/org/traccar/protocol/EelinkProtocolDecoder.java
index 6c3230050..00c74f7f3 100644
--- a/src/org/traccar/protocol/EelinkProtocolDecoder.java
+++ b/src/org/traccar/protocol/EelinkProtocolDecoder.java
@@ -111,7 +111,7 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder {
// Location
position.setTime(new Date(buf.readUnsignedInt() * 1000));
position.setLatitude(buf.readInt() / 1800000.0);
- position.setLatitude(buf.readInt() / 1800000.0);
+ position.setLongitude(buf.readInt() / 1800000.0);
position.setSpeed(buf.readUnsignedByte() * 0.539957);
position.setCourse((double) buf.readUnsignedShort());
position.setAltitude(0.0);
@@ -130,6 +130,7 @@ public class EelinkProtocolDecoder extends BaseProtocolDecoder {
extendedInfo.set("status", buf.readUnsignedByte());
}
+ position.setExtendedInfo(extendedInfo.toString());
return position;
}