hackrf: change out-of-spec rate 5e6 to 8e6 default

standalone
Dimitri Stolnikov 10 years ago
parent 40ca42013b
commit e17ee6d96e
  1. 4
      lib/hackrf/hackrf_sink_c.cc
  2. 4
      lib/hackrf/hackrf_source_c.cc

@ -204,7 +204,7 @@ hackrf_sink_c::hackrf_sink_c (const std::string &args)
<< std::endl;
}
set_sample_rate( 5000000 );
set_sample_rate( get_sample_rates().start() );
set_gain( 0 ); /* disable AMP gain stage by default */
@ -472,7 +472,7 @@ osmosdr::meta_range_t hackrf_sink_c::get_sample_rates()
{
osmosdr::meta_range_t range;
range += osmosdr::range_t( 5e6 ); /* out of spec but appears to work */
range += osmosdr::range_t( 8e6 );
range += osmosdr::range_t( 10e6 );
range += osmosdr::range_t( 12.5e6 );
range += osmosdr::range_t( 16e6 );

@ -157,7 +157,7 @@ hackrf_source_c::hackrf_source_c (const std::string &args)
<< std::endl;
}
set_sample_rate( 5000000 );
set_sample_rate( get_sample_rates().start() );
set_gain( 0 ); /* disable AMP gain stage by default */
@ -363,7 +363,7 @@ osmosdr::meta_range_t hackrf_source_c::get_sample_rates()
{
osmosdr::meta_range_t range;
range += osmosdr::range_t( 5e6 ); /* out of spec but appears to work */
range += osmosdr::range_t( 8e6 );
range += osmosdr::range_t( 10e6 );
range += osmosdr::range_t( 12.5e6 );
range += osmosdr::range_t( 16e6 );

Loading…
Cancel
Save