aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-30 12:21:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-30 12:21:22 +1300
commit30d5a99aab58f8db6f3096d073db9b68c4b93c9d (patch)
treea230c82e7119ad6a71d7682c19b90e498441e623 /src/org
parenta6b8f7f7ef0fa3b58dcdfee38b18e61bd7ce18b4 (diff)
downloadtrackermap-server-30d5a99aab58f8db6f3096d073db9b68c4b93c9d.tar.gz
trackermap-server-30d5a99aab58f8db6f3096d073db9b68c4b93c9d.tar.bz2
trackermap-server-30d5a99aab58f8db6f3096d073db9b68c4b93c9d.zip
Decode only valid course value
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/AquilaProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AquilaProtocolDecoder.java b/src/org/traccar/protocol/AquilaProtocolDecoder.java
index 60a6286e8..ad85c54c2 100644
--- a/src/org/traccar/protocol/AquilaProtocolDecoder.java
+++ b/src/org/traccar/protocol/AquilaProtocolDecoder.java
@@ -124,7 +124,7 @@ public class AquilaProtocolDecoder extends BaseProtocolDecoder {
(Integer.parseInt(parser.group(index++)) << 1) +
(Integer.parseInt(parser.group(index++)));
- if (course > 0) {
+ if (course > 0 && course <= 8) {
position.setCourse((course - 1) * 45);
}