diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2014-05-25 20:16:47 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2014-05-25 20:16:47 +1200 |
commit | 66dd4c32b36e3b11c2d63fc50411e8ff1c55d512 (patch) | |
tree | ecb54c9418114670e3a09d01b0c06b3924f665e0 /src | |
parent | cd0527ebafe7199b1a171b95bf09aff79f5243e4 (diff) | |
download | traccar-server-66dd4c32b36e3b11c2d63fc50411e8ff1c55d512.tar.gz traccar-server-66dd4c32b36e3b11c2d63fc50411e8ff1c55d512.tar.bz2 traccar-server-66dd4c32b36e3b11c2d63fc50411e8ff1c55d512.zip |
Fix eeLink decoder
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/EelinkProtocolDecoder.java | 3 |
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; } |