I have an ADC task that uses 4 channels and uses the DMA for transfer. I also have a streaming client which streams the ADC data through the TCP socket. I made the ADS Task lower priority than the streaming client.

I'm sending an integer that selects which ADC channel is selected as a message queue to the streaming client.

The problem is I get queue overflow when sending that adc channel integer.

  if(bufferSelect != BUFFERS_NOT_READY)
{
{
throwError(ERROR_MESSAGE_QUEUE_FULL);
PRINTF("%s\r\n", getErrorMessage(ERROR_MESSAGE_QUEUE_FULL));
}
}


/* obtain next buffer ready event */