mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-10-16 12:31:08 -04:00
wait_for_buffer() now handles TX buffers.
Feels a bit awkward to read LLI src/dest to determine if RX or TX. But it works.
This commit is contained in:
parent
c8af6dcd70
commit
96da55d83a
3 changed files with 7 additions and 4 deletions
|
@ -77,7 +77,7 @@ void BasebandThread::run() {
|
|||
|
||||
while( !chThdShouldTerminate() ) {
|
||||
// TODO: Place correct sampling rate into buffer returned here:
|
||||
const auto buffer_tmp = baseband::dma::wait_for_rx_buffer();
|
||||
const auto buffer_tmp = baseband::dma::wait_for_buffer();
|
||||
if( buffer_tmp ) {
|
||||
buffer_c8_t buffer {
|
||||
buffer_tmp.p, buffer_tmp.count, sampling_rate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue