aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/NavisProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/NavisProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/NavisProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/NavisProtocolDecoder.java b/src/org/traccar/protocol/NavisProtocolDecoder.java
index 7e3dc9728..e98b8d15a 100644
--- a/src/org/traccar/protocol/NavisProtocolDecoder.java
+++ b/src/org/traccar/protocol/NavisProtocolDecoder.java
@@ -172,8 +172,8 @@ public class NavisProtocolDecoder extends BaseProtocolDecoder {
// Location data
position.setLatitude(buf.readFloat() / Math.PI * 180);
position.setLongitude(buf.readFloat() / Math.PI * 180);
- position.setSpeed((double) buf.readFloat());
- position.setCourse((double) buf.readUnsignedShort());
+ position.setSpeed(buf.readFloat());
+ position.setCourse(buf.readUnsignedShort());
// Milage
extendedInfo.set("milage", buf.readFloat());