diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-16 14:29:30 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-16 14:29:30 +1300 |
commit | 94997c733c597174681a3f5d980c594917d47fd7 (patch) | |
tree | 43e80f974d997c1dfbabf44c17d866b16794795f /src/org/traccar/protocol/ThinkRaceProtocolDecoder.java | |
parent | 2343111919e0cddd63a481edf84e64f5dd46ea92 (diff) | |
download | trackermap-server-94997c733c597174681a3f5d980c594917d47fd7.tar.gz trackermap-server-94997c733c597174681a3f5d980c594917d47fd7.tar.bz2 trackermap-server-94997c733c597174681a3f5d980c594917d47fd7.zip |
Fix unused imports and other warnings
Diffstat (limited to 'src/org/traccar/protocol/ThinkRaceProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/ThinkRaceProtocolDecoder.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/ThinkRaceProtocolDecoder.java b/src/org/traccar/protocol/ThinkRaceProtocolDecoder.java index a5a1ef784..678f96f2a 100644 --- a/src/org/traccar/protocol/ThinkRaceProtocolDecoder.java +++ b/src/org/traccar/protocol/ThinkRaceProtocolDecoder.java @@ -37,8 +37,9 @@ public class ThinkRaceProtocolDecoder extends BaseProtocolDecoder { public static final int MSG_GPS = 0x90; private static double convertCoordinate(long raw, boolean negative) { - double result = raw / 1000000; - result += (raw % 1000000) * 0.0001 / 60; + long degrees = raw / 1000000; + double minutes = (raw % 1000000) * 0.0001; + double result = degrees + minutes / 60; if (negative) { result = -result; } |