From 66dd4c32b36e3b11c2d63fc50411e8ff1c55d512 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 25 May 2014 20:16:47 +1200 Subject: Fix eeLink decoder --- src/org/traccar/protocol/EelinkProtocolDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/org') 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; } -- cgit v1.2.3