aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-06 10:24:53 +0300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-06 10:24:53 +0300
commit08e058e868566e44a8e955fa8d18bdae5630ecec (patch)
tree03f4ea94e83c98fda005b74c209fb642a7806347 /src/org/traccar/protocol
parent2cc642af2b1aeeb07e2b6676cf433112cc7cd7bc (diff)
downloadtrackermap-server-08e058e868566e44a8e955fa8d18bdae5630ecec.tar.gz
trackermap-server-08e058e868566e44a8e955fa8d18bdae5630ecec.tar.bz2
trackermap-server-08e058e868566e44a8e955fa8d18bdae5630ecec.zip
Fix an issue in Castel decoder
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/CastelProtocolDecoder.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/CastelProtocolDecoder.java b/src/org/traccar/protocol/CastelProtocolDecoder.java
index 212096018..0beca4070 100644
--- a/src/org/traccar/protocol/CastelProtocolDecoder.java
+++ b/src/org/traccar/protocol/CastelProtocolDecoder.java
@@ -218,7 +218,13 @@ public class CastelProtocolDecoder extends BaseProtocolDecoder {
return positions;
}
- } else if (type == MSG_SC_GPS_SLEEP || type == MSG_SC_AGPS_REQUEST) {
+ } else if (type == MSG_SC_GPS_SLEEP) {
+
+ buf.readUnsignedInt(); // device time
+
+ return readPosition(deviceSession, buf);
+
+ } else if (type == MSG_SC_AGPS_REQUEST) {
return readPosition(deviceSession, buf);