aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/ThinkRaceProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/ThinkRaceProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/ThinkRaceProtocolDecoder.java5
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;
}