diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-20 22:32:15 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-20 22:32:15 -0700 |
commit | 1816dcd505d0d5d8201ce2e8f78030569e70322f (patch) | |
tree | d9f914b5b100004f3cfc6f2cad5b170fb7326267 /src/org/traccar/protocol | |
parent | 0be9e4a11b3c288b8d6aa6a53c23623684e27e1f (diff) | |
download | trackermap-server-1816dcd505d0d5d8201ce2e8f78030569e70322f.tar.gz trackermap-server-1816dcd505d0d5d8201ce2e8f78030569e70322f.tar.bz2 trackermap-server-1816dcd505d0d5d8201ce2e8f78030569e70322f.zip |
Decode T800x satellites
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r-- | src/org/traccar/protocol/T800xProtocolDecoder.java | 3 |
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 |