diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-27 12:18:31 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-27 12:18:31 +1200 |
commit | 27055e0bf5f544552c227da10badff34a71cfb70 (patch) | |
tree | fa49594c393e42a1221009c1e6d309b06452e794 /src/org/traccar/protocol/AutoFonProtocolDecoder.java | |
parent | 42406b4d6a32db0d438447a5fce114669810d746 (diff) | |
download | trackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.tar.gz trackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.tar.bz2 trackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.zip |
Remove unnecessary type casts
Diffstat (limited to 'src/org/traccar/protocol/AutoFonProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/AutoFonProtocolDecoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/AutoFonProtocolDecoder.java b/src/org/traccar/protocol/AutoFonProtocolDecoder.java index 2c563d6d2..48e30b72b 100644 --- a/src/org/traccar/protocol/AutoFonProtocolDecoder.java +++ b/src/org/traccar/protocol/AutoFonProtocolDecoder.java @@ -97,8 +97,8 @@ public class AutoFonProtocolDecoder extends BaseProtocolDecoder { // Location position.setLatitude(convertCoordinate(buf.readInt())); position.setLongitude(convertCoordinate(buf.readInt())); - position.setAltitude((double) buf.readShort()); - position.setSpeed((double) buf.readUnsignedByte()); + position.setAltitude(buf.readShort()); + position.setSpeed(buf.readUnsignedByte()); position.setCourse(buf.readUnsignedByte() * 2.0); extendedInfo.set("hdop", buf.readUnsignedShort()); |