From d882fb0049911231a4bebe4325e2915af21a2e10 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 14 Apr 2017 12:10:02 +1200 Subject: Revert a change --- src/org/traccar/protocol/PricolProtocolDecoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org') diff --git a/src/org/traccar/protocol/PricolProtocolDecoder.java b/src/org/traccar/protocol/PricolProtocolDecoder.java index dd804d8bd..a33e19b90 100644 --- a/src/org/traccar/protocol/PricolProtocolDecoder.java +++ b/src/org/traccar/protocol/PricolProtocolDecoder.java @@ -63,11 +63,11 @@ public class PricolProtocolDecoder extends BaseProtocolDecoder { position.setValid(true); - double lat = (double) (buf.getUnsignedShort(buf.readerIndex()) / 100); + double lat = buf.getUnsignedShort(buf.readerIndex()) / 100; lat += (buf.readUnsignedShort() % 100 * 10000 + buf.readUnsignedShort()) / 600000.0; position.setLatitude(buf.readUnsignedByte() == 'S' ? -lat : lat); - double lon = (double) (buf.getUnsignedMedium(buf.readerIndex()) / 100); + double lon = buf.getUnsignedMedium(buf.readerIndex()) / 100; lon += (buf.readUnsignedMedium() % 100 * 10000 + buf.readUnsignedShort()) / 600000.0; position.setLongitude(buf.readUnsignedByte() == 'W' ? -lon : lon); -- cgit v1.2.3