mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2026-04-06 23:03:47 +00:00
Add more descriptive output to a circular buffer overwrite
This commit is contained in:
parent
524891c602
commit
b27cdc451a
1 changed files with 3 additions and 1 deletions
|
|
@ -105,7 +105,9 @@ void cbWriteFloat(Circular_Float_Buffer cb, float sample)
|
|||
cb->end = (cb->end + 1) % cb->size;
|
||||
if (cb->end == cb->start) {
|
||||
cb->start = (cb->start + 1) % cb->size; /* full, overwrite */
|
||||
output(ANSI_RED "Overwrite! in Circular Float Buffer - Name %s\n" ANSI_WHITE, cb->name);
|
||||
output(ANSI_RED "Overwrite! in Circular Float Buffer - Name %s\n"
|
||||
"Size %d Start %d End %d\n "ANSI_WHITE, cb->name, cb->size, cb->start, cb->end);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue