diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-26 15:20:18 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-26 15:20:18 -0700 |
commit | 6f1bdcb58608e3a7c2625841e3a8f1c6297bb544 (patch) | |
tree | 41434e1b13c97538214b7d7c03f660ad921ca965 /host/lib/usrp/usrp2/dboard_impl.cpp | |
parent | b1992806e130216fdab963c2154f489189b8c3b5 (diff) | |
download | uhd-6f1bdcb58608e3a7c2625841e3a8f1c6297bb544.tar.gz uhd-6f1bdcb58608e3a7c2625841e3a8f1c6297bb544.tar.bz2 uhd-6f1bdcb58608e3a7c2625841e3a8f1c6297bb544.zip |
Renamed the prop set/get error macros so they make sense for not-implemented properties.
Diffstat (limited to 'host/lib/usrp/usrp2/dboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/dboard_impl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/dboard_impl.cpp b/host/lib/usrp/usrp2/dboard_impl.cpp index 226a7950d..403faf5cf 100644 --- a/host/lib/usrp/usrp2/dboard_impl.cpp +++ b/host/lib/usrp/usrp2/dboard_impl.cpp @@ -123,7 +123,7 @@ void usrp2_impl::rx_dboard_get(const wax::obj &key_, wax::obj &val){ val = _rx_db_eeprom.id; return; - default: UHD_THROW_PROP_WRITE_ONLY(); + default: UHD_THROW_PROP_GET_ERROR(); } } @@ -139,7 +139,7 @@ void usrp2_impl::rx_dboard_set(const wax::obj &key, const wax::obj &val){ _iface->write_eeprom(I2C_ADDR_RX_DB, 0, _rx_db_eeprom.get_eeprom_bytes()); return; - default: UHD_THROW_PROP_READ_ONLY(); + default: UHD_THROW_PROP_SET_ERROR(); } } @@ -172,7 +172,7 @@ void usrp2_impl::tx_dboard_get(const wax::obj &key_, wax::obj &val){ val = _tx_db_eeprom.id; return; - default: UHD_THROW_PROP_WRITE_ONLY(); + default: UHD_THROW_PROP_GET_ERROR(); } } @@ -188,6 +188,6 @@ void usrp2_impl::tx_dboard_set(const wax::obj &key, const wax::obj &val){ _iface->write_eeprom(I2C_ADDR_TX_DB, 0, _tx_db_eeprom.get_eeprom_bytes()); return; - default: UHD_THROW_PROP_READ_ONLY(); + default: UHD_THROW_PROP_SET_ERROR(); } } |