FreeRTOS - Design Patterns for RTOS
Identify the bug in this FreeRTOS consumer task code that causes it to never receive data:
void consumerTask(void *params) {
int receivedData;
while(1) {
if(xQueueReceive(queueHandle, &receivedData, 0) == pdFALSE) {
// No data received
continue;
}
processData(receivedData);
}
}