aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorThomas Tsou <ttsou@vt.edu>2010-08-23 15:30:14 -0700
committerThomas Tsou <ttsou@vt.edu>2010-08-23 15:30:14 -0700
commit54debe30bbbc85c1cd1863d21a8e66ed4c8703e0 (patch)
treecbaf5269877b04a25220caee72d2527fca29a4d5 /host
parent3f4e998bbf59dcc1c5df88ed37ca74f80a1b2e70 (diff)
downloaduhd-54debe30bbbc85c1cd1863d21a8e66ed4c8703e0.tar.gz
uhd-54debe30bbbc85c1cd1863d21a8e66ed4c8703e0.tar.bz2
uhd-54debe30bbbc85c1cd1863d21a8e66ed4c8703e0.zip
usrp1: Fix assertion that prevents 32-bit SPI transactions
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/usrp1/usrp1_iface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_iface.cpp b/host/lib/usrp/usrp1/usrp1_iface.cpp
index d228161f1..e52f3d952 100644
--- a/host/lib/usrp/usrp1/usrp1_iface.cpp
+++ b/host/lib/usrp/usrp1/usrp1_iface.cpp
@@ -165,7 +165,7 @@ public:
size_t num_bits,
bool readback)
{
- UHD_ASSERT_THROW((num_bits < 32) && !(num_bits % 8));
+ UHD_ASSERT_THROW((num_bits <= 32) && !(num_bits % 8));
size_t num_bytes = num_bits / 8;
// Byteswap on num_bytes