hackrf: set the default sample rate to 10M

this prevents a regression with early firmware who did not have 8M rate
but 5M instead. they both had 10M, so we use this as default.
standalone
Dimitri Stolnikov 10 years ago
parent bbf06c7272
commit 7a129238b7
  1. 3
      lib/hackrf/hackrf_sink_c.cc
  2. 3
      lib/hackrf/hackrf_source_c.cc

@ -204,7 +204,8 @@ hackrf_sink_c::hackrf_sink_c (const std::string &args)
<< std::endl;
}
set_sample_rate( get_sample_rates().start() );
// set_sample_rate( get_sample_rates().start() );
set_sample_rate( 10e6 );
set_gain( 0 ); /* disable AMP gain stage by default */

@ -157,7 +157,8 @@ hackrf_source_c::hackrf_source_c (const std::string &args)
<< std::endl;
}
set_sample_rate( get_sample_rates().start() );
// set_sample_rate( get_sample_rates().start() );
set_sample_rate( 10e6 );
set_gain( 0 ); /* disable AMP gain stage by default */

Loading…
Cancel
Save