diff options
author | Michael West <michael.west@ettus.com> | 2013-11-01 16:29:18 -0700 |
---|---|---|
committer | Michael West <michael.west@ettus.com> | 2013-11-01 16:29:18 -0700 |
commit | 709db30d12a664b23b7f3695433a7b2d45c2a533 (patch) | |
tree | e733a3e892277e45b498ae1d39183eaf7c28b2b3 | |
parent | fddcf720a16e7caccb132d8c66814c2e7e627dfe (diff) | |
download | uhd-709db30d12a664b23b7f3695433a7b2d45c2a533.tar.gz uhd-709db30d12a664b23b7f3695433a7b2d45c2a533.tar.bz2 uhd-709db30d12a664b23b7f3695433a7b2d45c2a533.zip |
Readability improvements.
-rw-r--r-- | host/lib/usrp/usrp1/usrp1_iface.cpp | 6 |
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){ |