aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-20 22:32:15 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-20 22:32:15 -0700
commit1816dcd505d0d5d8201ce2e8f78030569e70322f (patch)
treed9f914b5b100004f3cfc6f2cad5b170fb7326267 /src
parent0be9e4a11b3c288b8d6aa6a53c23623684e27e1f (diff)
downloadtraccar-server-1816dcd505d0d5d8201ce2e8f78030569e70322f.tar.gz
traccar-server-1816dcd505d0d5d8201ce2e8f78030569e70322f.tar.bz2
traccar-server-1816dcd505d0d5d8201ce2e8f78030569e70322f.zip
Decode T800x satellites
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/T800xProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/T800xProtocolDecoder.java b/src/org/traccar/protocol/T800xProtocolDecoder.java
index 866971090..9db5b22f0 100644
--- a/src/org/traccar/protocol/T800xProtocolDecoder.java
+++ b/src/org/traccar/protocol/T800xProtocolDecoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2018 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2019 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -112,6 +112,7 @@ public class T800xProtocolDecoder extends BaseProtocolDecoder {
buf.readUnsignedShort(); // speed alarm
int status = buf.readUnsignedByte();
+ position.set(Position.KEY_SATELLITES, BitUtil.to(status, 5));
buf.readUnsignedByte(); // gsensor manager status
buf.readUnsignedByte(); // other flags