hackrf: enable buffers argument for the source block

This commit is contained in:
Dimitri Stolnikov 2013-05-26 13:04:06 +02:00
parent 193fd0ad88
commit ceb14f0f13
2 changed files with 4 additions and 4 deletions

View File

@ -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] ...

View File

@ -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"] );