diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-02-26 16:03:48 -0800 |
---|---|---|
committer | Michael West <michael.west@ettus.com> | 2019-03-05 10:33:06 -0800 |
commit | dd61c2376f62b42e06844fd23522138eb7c01a04 (patch) | |
tree | 0fb39e72f2e22d348d99644e0aa94a75d6a4449d /host/lib/usrp/x300/x300_defaults.hpp | |
parent | 10843679bde75cd77b0d6d518177a07b1949ade8 (diff) | |
download | uhd-dd61c2376f62b42e06844fd23522138eb7c01a04.tar.gz uhd-dd61c2376f62b42e06844fd23522138eb7c01a04.tar.bz2 uhd-dd61c2376f62b42e06844fd23522138eb7c01a04.zip |
x300: Catch more inconsistencies in x300_device_args
- ADC self test had magic numbers for default duration
- resource and addr can be no longer be both specified without a warning
- second_addr requires addr now, or you get a warning
Diffstat (limited to 'host/lib/usrp/x300/x300_defaults.hpp')
-rw-r--r-- | host/lib/usrp/x300/x300_defaults.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/x300/x300_defaults.hpp b/host/lib/usrp/x300/x300_defaults.hpp index 5956686d0..55991587a 100644 --- a/host/lib/usrp/x300/x300_defaults.hpp +++ b/host/lib/usrp/x300/x300_defaults.hpp @@ -102,6 +102,8 @@ static const size_t MAX_RATE_1GIGE = (size_t)( // bytes/s / float(GE_DATA_FRAME_RECV_SIZE + 8 /* UDP header */ + 20 /* Ethernet header length */))); +static constexpr double DEFAULT_EXT_ADC_SELF_TEST_DURATION = 30.0; + }}} /* namespace uhd::usrp::x300 */ #endif /* INCLUDED_X300_DEFAULTS_HPP */ |