aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2013-11-01 16:29:18 -0700
committerMichael West <michael.west@ettus.com>2013-11-01 16:29:18 -0700
commit709db30d12a664b23b7f3695433a7b2d45c2a533 (patch)
treee733a3e892277e45b498ae1d39183eaf7c28b2b3 /host
parentfddcf720a16e7caccb132d8c66814c2e7e627dfe (diff)
downloaduhd-709db30d12a664b23b7f3695433a7b2d45c2a533.tar.gz
uhd-709db30d12a664b23b7f3695433a7b2d45c2a533.tar.bz2
uhd-709db30d12a664b23b7f3695433a7b2d45c2a533.zip
Readability improvements.
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/usrp1/usrp1_iface.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_iface.cpp b/host/lib/usrp/usrp1/usrp1_iface.cpp
index 7c64714b7..6eff9d3ad 100644
--- a/host/lib/usrp/usrp1/usrp1_iface.cpp
+++ b/host/lib/usrp/usrp1/usrp1_iface.cpp
@@ -141,8 +141,10 @@ public:
if (readback) {
unsigned char buff[4] = {
- (unsigned char)((bits >> 0) & 0xff), (unsigned char)((bits >> 8) & 0xff),
- (unsigned char)((bits >> 16) & 0xff), (unsigned char)((bits >> 24) & 0xff)
+ (unsigned char)(bits & 0xff),
+ (unsigned char)((bits >> 8) & 0xff),
+ (unsigned char)((bits >> 16) & 0xff),
+ (unsigned char)((bits >> 24) & 0xff)
};
//conditions where there are two header bytes
if (num_bytes >= 3 and buff[num_bytes-1] != 0 and buff[num_bytes-2] != 0 and buff[num_bytes-3] == 0){