forked from sdr/gr-osmosdr
hackrf: enable buffers argument for the source block
parent
193fd0ad88
commit
ceb14f0f13
|
@ -133,7 +133,7 @@ Lines ending with ... mean it's possible to bind devices together by specifying
|
|||
|
||||
Source Mode:
|
||||
fcd=0
|
||||
hackrf=0
|
||||
hackrf=0[,buffers=32]
|
||||
miri=0[,buffers=32] ...
|
||||
rtl=serial_number ...
|
||||
rtl=0[,rtl_xtal=28.8e6][,tuner_xtal=28.8e6] ...
|
||||
|
|
|
@ -90,12 +90,12 @@ hackrf_source_c::hackrf_source_c (const std::string &args)
|
|||
int ret;
|
||||
uint16_t val;
|
||||
|
||||
// dict_t dict = params_to_dict(args);
|
||||
dict_t dict = params_to_dict(args);
|
||||
|
||||
_buf_num = _buf_len = _buf_head = _buf_used = _buf_offset = 0;
|
||||
|
||||
// if (dict.count("buffers"))
|
||||
// _buf_num = boost::lexical_cast< unsigned int >( dict["buffers"] );
|
||||
if (dict.count("buffers"))
|
||||
_buf_num = boost::lexical_cast< unsigned int >( dict["buffers"] );
|
||||
|
||||
// if (dict.count("buflen"))
|
||||
// _buf_len = boost::lexical_cast< unsigned int >( dict["buflen"] );
|
||||
|
|
Loading…
Reference in New Issue