aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Jt600ProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/Jt600ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Jt600ProtocolDecoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/Jt600ProtocolDecoder.java b/src/org/traccar/protocol/Jt600ProtocolDecoder.java
index a1eb67993..e840db8b8 100644
--- a/src/org/traccar/protocol/Jt600ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Jt600ProtocolDecoder.java
@@ -89,7 +89,7 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder {
position.setLongitude(longitude);
// Speed
- position.setSpeed((double) ChannelBufferTools.readHexInteger(buf, 2));
+ position.setSpeed(ChannelBufferTools.readHexInteger(buf, 2));
// Course
position.setCourse(buf.readUnsignedByte() * 2.0);
@@ -104,7 +104,7 @@ public class Jt600ProtocolDecoder extends BaseProtocolDecoder {
buf.readByte(); // other flags and sensors
// Altitude
- position.setAltitude((double) buf.readUnsignedShort());
+ position.setAltitude(buf.readUnsignedShort());
extendedInfo.set("cell", buf.readUnsignedShort());
extendedInfo.set("lac", buf.readUnsignedShort());