aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/Avl301ProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-04-27 12:18:31 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-04-27 12:18:31 +1200
commit27055e0bf5f544552c227da10badff34a71cfb70 (patch)
treefa49594c393e42a1221009c1e6d309b06452e794 /src/org/traccar/protocol/Avl301ProtocolDecoder.java
parent42406b4d6a32db0d438447a5fce114669810d746 (diff)
downloadtrackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.tar.gz
trackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.tar.bz2
trackermap-server-27055e0bf5f544552c227da10badff34a71cfb70.zip
Remove unnecessary type casts
Diffstat (limited to 'src/org/traccar/protocol/Avl301ProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/Avl301ProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/Avl301ProtocolDecoder.java b/src/org/traccar/protocol/Avl301ProtocolDecoder.java
index 2281bfed0..66db5b55a 100644
--- a/src/org/traccar/protocol/Avl301ProtocolDecoder.java
+++ b/src/org/traccar/protocol/Avl301ProtocolDecoder.java
@@ -113,7 +113,7 @@ public class Avl301ProtocolDecoder extends BaseProtocolDecoder {
// Course and flags
int union = buf.readUnsignedShort();
- position.setCourse((double) (union & 0x03FF));
+ position.setCourse(union & 0x03FF);
position.setValid((union & 0x1000) != 0);
if ((union & 0x0400) != 0) latitude = -latitude;
if ((union & 0x0800) != 0) longitude = -longitude;