fixing a time alignment issue in the case where the number of samples… (#1255)

* fixing a time alignment issue in the case where the number of samples supplied by the frontend is differnt to the number requested
master
Justin Tallon 5 years ago committed by GitHub
parent 241f4c7310
commit 3a258c16be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -289,10 +289,11 @@ bool radio::tx(rf_buffer_interface& buffer, const uint32_t& nof_samples_, const
} }
// Update transmission parameters // Update transmission parameters
tx_time = end_of_burst_time;
nof_samples -= past_nsamples;
sample_offset = (uint32_t)past_nsamples; sample_offset = (uint32_t)past_nsamples;
} }
// this aligns with the next packet for the case where the nof_samples was not the amount requested, removing the gap between packets by adding samples
tx_time = end_of_burst_time;
nof_samples -= past_nsamples;
} }
// Save possible end of burst time // Save possible end of burst time

Loading…
Cancel
Save