Skip to content

Commit

Permalink
added ifdef check for user flags
Browse files Browse the repository at this point in the history
  • Loading branch information
guruofquality committed Jun 5, 2022
1 parent a3acdc4 commit 85f6dc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bladeRF_Streaming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,10 @@ int bladeRF_SoapySDR::readStream(
}

//add flags specific to BladeRF from bladerf_sync_rx.status.
#if defined(SOAPY_SDR_USER_FLAG0) and defined(SOAPY_SDR_USER_FLAG1)
if ((md.status & BLADERF_META_FLAG_RX_HW_MINIEXP1) != 0) flags |= SOAPY_SDR_USER_FLAG0;
if ((md.status & BLADERF_META_FLAG_RX_HW_MINIEXP2) != 0) flags |= SOAPY_SDR_USER_FLAG1;
#endif

//consume from the command if this is a finite burst
if (cmd.numElems > 0)
Expand Down

0 comments on commit 85f6dc5

Please sign in to comment.