diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-04-28 12:28:04 +0200 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-04-28 12:28:04 +0200 |
commit | 882b6da6ac42afd7381bdb89a6118d829f005a18 (patch) | |
tree | c9e04f789baf8a06242412c874eaacd11386fb9d /lib/hackrf/hackrf_source_c.cc | |
parent | 37f6383c7c7383a5ee5402f2ad0d260db250bb7b (diff) |
hackrf: updated source comments
Diffstat (limited to 'lib/hackrf/hackrf_source_c.cc')
-rw-r--r-- | lib/hackrf/hackrf_source_c.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hackrf/hackrf_source_c.cc b/lib/hackrf/hackrf_source_c.cc index 2b74afb..c2699fa 100644 --- a/lib/hackrf/hackrf_source_c.cc +++ b/lib/hackrf/hackrf_source_c.cc @@ -45,7 +45,7 @@ using namespace boost::assign; #define BUF_LEN (16 * 32 * 512) /* must be multiple of 512 */ #define BUF_NUM 32 -#define BYTES_PER_SAMPLE 2 // HackRF device delivers 8 bit unsigned IQ data +#define BYTES_PER_SAMPLE 2 /* HackRF device produces 8 bit unsigned IQ data */ int hackrf_source_c::_usage = 0; boost::mutex hackrf_source_c::_usage_mutex; @@ -275,6 +275,9 @@ bool hackrf_source_c::stop() while ( hackrf_is_streaming( _dev ) ); + /* FIXME: hackrf_stop_rx should wait until the device is ready for a start */ + usleep(100000); /* required if we want to immediately start() again */ + return ! (bool) hackrf_is_streaming( _dev ); } |