Revision 4ecc24d0 host/lib/usrp/dboard/db_basic_and_lf.cpp
| b/host/lib/usrp/dboard/db_basic_and_lf.cpp | ||
|---|---|---|
| 170 | 170 |
return; |
| 171 | 171 |
|
| 172 | 172 |
case SUBDEV_PROP_ANTENNA: |
| 173 |
UHD_ASSERT_THROW(val.as<std::string>() == std::string(""));
|
|
| 174 |
return;
|
|
| 173 |
if (val.as<std::string>().empty()) return;
|
|
| 174 |
throw std::runtime_error("no selectable antennas on this board");
|
|
| 175 | 175 |
|
| 176 | 176 |
case SUBDEV_PROP_FREQ: |
| 177 | 177 |
return; // it wont do you much good, but you can set it |
| ... | ... | |
| 259 | 259 |
return; |
| 260 | 260 |
|
| 261 | 261 |
case SUBDEV_PROP_ANTENNA: |
| 262 |
UHD_ASSERT_THROW(val.as<std::string>() == std::string(""));
|
|
| 263 |
return;
|
|
| 262 |
if (val.as<std::string>().empty()) return;
|
|
| 263 |
throw std::runtime_error("no selectable antennas on this board");
|
|
| 264 | 264 |
|
| 265 | 265 |
case SUBDEV_PROP_FREQ: |
| 266 | 266 |
return; // it wont do you much good, but you can set it |
Also available in: Unified diff