aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/mboard_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-26 12:19:00 -0700
committerJosh Blum <josh@joshknows.com>2010-04-26 12:19:00 -0700
commitf040d79d256bcdfcd931ab93e00b66f6af881a14 (patch)
tree0bb82963278a64caaa04b1c5360f0d3e48059d42 /host/lib/usrp/usrp2/mboard_impl.cpp
parent15befa19de40fb82f30d71bf21a767e7d8054ba1 (diff)
parent1217b8d67c3bef98195836fe10ab39576642b340 (diff)
downloaduhd-f040d79d256bcdfcd931ab93e00b66f6af881a14.tar.gz
uhd-f040d79d256bcdfcd931ab93e00b66f6af881a14.tar.bz2
uhd-f040d79d256bcdfcd931ab93e00b66f6af881a14.zip
Merge branch 'eeprom' of git@ettus.sourcerepo.com:ettus/uhdpriv
Diffstat (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/mboard_impl.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp
index f94806c9f..2c185ec53 100644
--- a/host/lib/usrp/usrp2/mboard_impl.cpp
+++ b/host/lib/usrp/usrp2/mboard_impl.cpp
@@ -248,9 +248,7 @@ void usrp2_impl::mboard_get(const wax::obj &key_, wax::obj &val){
val = _clock_config;
return;
- default:
- throw std::runtime_error("Error: trying to get write-only property on usrp2 mboard");
-
+ default: UHD_THROW_PROP_WRITE_ONLY();
}
}
@@ -306,8 +304,6 @@ void usrp2_impl::mboard_set(const wax::obj &key, const wax::obj &val){
issue_ddc_stream_cmd(val.as<stream_cmd_t>());
return;
- default:
- throw std::runtime_error("Error: trying to set read-only property on usrp2 mboard");
-
+ default: UHD_THROW_PROP_READ_ONLY();
}
}