aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/EelinkProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-05-25 20:16:47 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2014-05-25 20:16:47 +1200
commit66dd4c32b36e3b11c2d63fc50411e8ff1c55d512 (patch)
treeecb54c9418114670e3a09d01b0c06b3924f665e0 /src/org/traccar/protocol/EelinkProtocolDecoder.java
parentcd0527ebafe7199b1a171b95bf09aff79f5243e4 (diff)
downloadtrackermap-server-66dd4c32b36e3b11c2d63fc50411e8ff1c55d512.tar.gz
trackermap-server-66dd4c32b36e3b11c2d63fc50411e8ff1c55d512.tar.bz2
trackermap-server-66dd4c32b36e3b11c2d63fc50411e8ff1c55d512.zip
Fix eeLink decoder
Diffstat (limited to 'src/org/traccar/protocol/EelinkProtocolDecoder.java')
-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;
}