summaryrefslogtreecommitdiff
path: root/node/Packet.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-03-17 17:15:23 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-03-17 17:15:23 -0700
commite10325e133beb01a2e9d82687eb33fd72f1ac3ab (patch)
tree731c3c78c36b2f1263441591f9490476a42f646c /node/Packet.hpp
parentef46d3c97dd5d63af7b638f6107bb56495bab9a5 (diff)
downloadinfinitytier-e10325e133beb01a2e9d82687eb33fd72f1ac3ab.tar.gz
infinitytier-e10325e133beb01a2e9d82687eb33fd72f1ac3ab.zip
GitHub issue #461 -- plus a bit of cleanup and optimization
Diffstat (limited to 'node/Packet.hpp')
-rw-r--r--node/Packet.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Packet.hpp b/node/Packet.hpp
index fb332b7d..8ad2c0f9 100644
--- a/node/Packet.hpp
+++ b/node/Packet.hpp
@@ -1322,7 +1322,7 @@ public:
/**
* @return Value of link quality counter extracted from this packet's ID, range 0 to 7 (3 bits)
*/
- inline unsigned int linkQualityCounter() const { return (unsigned int)(reinterpret_cast<const uint8_t *>(data())[7] & 7); }
+ inline unsigned int linkQualityCounter() const { return (unsigned int)(reinterpret_cast<const uint8_t *>(data())[7] & 0x07); }
/**
* Set packet verb