summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2013-10-28 13:02:06 -0700
committerMichael West <michael.west@ettus.com>2013-10-28 13:02:06 -0700
commit1e4ed1f6d66af9b5ed226135266852c1f329de99 (patch)
tree66c05d17fa38aa91b2fb148f3fa8ad431514978b
parentab52e4ebca86000a105e0d9ae0f8b5f1b83f9021 (diff)
downloaduhd-1e4ed1f6d66af9b5ed226135266852c1f329de99.tar.gz
uhd-1e4ed1f6d66af9b5ed226135266852c1f329de99.tar.bz2
uhd-1e4ed1f6d66af9b5ed226135266852c1f329de99.zip
CID 1104348: Fixed assertion.
-rw-r--r--host/lib/usrp/usrp2/usrp2_iface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_iface.cpp b/host/lib/usrp/usrp2/usrp2_iface.cpp
index 3b230ca69..5f97045e1 100644
--- a/host/lib/usrp/usrp2/usrp2_iface.cpp
+++ b/host/lib/usrp/usrp2/usrp2_iface.cpp
@@ -271,7 +271,7 @@ public:
//send and recv
usrp2_ctrl_data_t in_data = this->ctrl_send_and_recv(out_data, MIN_PROTO_COMPAT_I2C);
UHD_ASSERT_THROW(ntohl(in_data.id) == USRP2_CTRL_ID_HERES_THE_I2C_DATA_DUDE);
- UHD_ASSERT_THROW(in_data.data.i2c_args.addr = num_bytes);
+ UHD_ASSERT_THROW(in_data.data.i2c_args.bytes == num_bytes);
//copy out the data
byte_vector_t result(num_bytes);