summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2013-11-20 12:14:24 -0800
committerMichael West <michael.west@ettus.com>2013-11-20 12:14:24 -0800
commit6ff935e6955be81f30606d0444a265ea03dc6f5d (patch)
tree27745786f543858b99d22de1d87f87da9f905f15 /host/lib/usrp/usrp1
parent1fe3db82d6d292a186fe26e728dfdf68db4db056 (diff)
parent265e94473130ffefc95d4eb67e8d46ce50982be4 (diff)
downloaduhd-6ff935e6955be81f30606d0444a265ea03dc6f5d.tar.gz
uhd-6ff935e6955be81f30606d0444a265ea03dc6f5d.tar.bz2
uhd-6ff935e6955be81f30606d0444a265ea03dc6f5d.zip
Merge remote branch
Diffstat (limited to 'host/lib/usrp/usrp1')
-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){