mirror of https://github.com/PentHertz/srsLTE.git
Fix compilation
This commit is contained in:
parent
be8e8cbe3e
commit
1463b11bad
|
@ -416,10 +416,13 @@ bool radio::tx(rf_buffer_interface& buffer, const rf_timestamp_interface& tx_tim
|
||||||
if (ratio > 1 && nof_samples * ratio > tx_buffer[0].size()) {
|
if (ratio > 1 && nof_samples * ratio > tx_buffer[0].size()) {
|
||||||
// This is a corner case that could happen during sample rate change transitions, as it does not have a negative
|
// This is a corner case that could happen during sample rate change transitions, as it does not have a negative
|
||||||
// impact, log it as info.
|
// impact, log it as info.
|
||||||
logger.info(fmt::format("Tx number of samples ({}/{}) exceeds buffer size ({})\n",
|
fmt::memory_buffer buff;
|
||||||
buffer.get_nof_samples(),
|
fmt::format_to(buff,
|
||||||
buffer.get_nof_samples() * ratio,
|
"Tx number of samples ({}/{}) exceeds buffer size ({})\n",
|
||||||
tx_buffer[0].size()));
|
buffer.get_nof_samples(),
|
||||||
|
buffer.get_nof_samples() * ratio,
|
||||||
|
tx_buffer[0].size());
|
||||||
|
logger.info("%s", to_c_str(buff));
|
||||||
|
|
||||||
// Limit number of samples to transmit
|
// Limit number of samples to transmit
|
||||||
nof_samples = tx_buffer[0].size() / ratio;
|
nof_samples = tx_buffer[0].size() / ratio;
|
||||||
|
|
Loading…
Reference in New Issue