Attempt to recover from ring buffer overflows (#141)

This commit is contained in:
Tony Corbett G0WFV 2016-09-23 14:48:44 +01:00
parent cfe5230182
commit 7ae770a79e

View file

@ -50,7 +50,8 @@ public:
bool addData(const T* buffer, unsigned int nSamples)
{
if (nSamples >= freeSpace()) {
LogError("**** Overflow in %s ring buffer, %u >= %u", m_name, nSamples, freeSpace());
LogError("%s buffer overflow, clearing the buffer. (%u >= %u)", m_name, nSamples, freeSpace());
clear();
return false;
}