aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/BceProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol/BceProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/BceProtocolDecoder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/protocol/BceProtocolDecoder.java b/src/org/traccar/protocol/BceProtocolDecoder.java
index ac8e257e3..365d51cb3 100644
--- a/src/org/traccar/protocol/BceProtocolDecoder.java
+++ b/src/org/traccar/protocol/BceProtocolDecoder.java
@@ -96,16 +96,16 @@ public class BceProtocolDecoder extends BaseProtocolDecoder {
if (checkBit(mask, 0)) {
position.setValid(true);
- position.setLongitude((double) buf.readFloat());
- position.setLatitude((double) buf.readFloat());
- position.setSpeed((double) buf.readUnsignedByte());
+ position.setLongitude(buf.readFloat());
+ position.setLatitude(buf.readFloat());
+ position.setSpeed(buf.readUnsignedByte());
int gps = buf.readUnsignedByte();
extendedInfo.set("satellites", gps & 0xf);
extendedInfo.set("hdop", gps >> 4);
- position.setCourse((double) buf.readUnsignedByte());
- position.setAltitude((double) buf.readUnsignedShort());
+ position.setCourse(buf.readUnsignedByte());
+ position.setAltitude(buf.readUnsignedShort());
extendedInfo.set("milage", buf.readUnsignedInt());