mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-09 18:35:25 +00:00
FreeRTOS
This commit is contained in:
@@ -160,11 +160,11 @@ void display_task(void *pvParameters) {
|
|||||||
SensorsData rx_data;
|
SensorsData rx_data;
|
||||||
while (1) {
|
while (1) {
|
||||||
if (xQueueReceive(xQueue1, &rx_data, 500)) {
|
if (xQueueReceive(xQueue1, &rx_data, 500)) {
|
||||||
printf("Received sensors_data from Queue 1: num1=%" PRIu32 ", num2=%" PRIu32 ", num3=%" PRIu32 "\n",
|
printf("\nReceived sensors_data from Queue 1: num1=%" PRIu32 ", num2=%" PRIu32 ", num3=%" PRIu32 "\n",
|
||||||
rx_data.num1, rx_data.num2, rx_data.num3);
|
rx_data.num1, rx_data.num2, rx_data.num3);
|
||||||
}
|
}
|
||||||
if (xQueueReceive(xQueue2, &rx_data, 500)) {
|
if (xQueueReceive(xQueue2, &rx_data, 500)) {
|
||||||
printf("Received sensors_data from Queue 2: num1=%" PRIu32 ", num2=%" PRIu32 ", num3=%" PRIu32 "\n",
|
printf("\nReceived sensors_data from Queue 2: num1=%" PRIu32 ", num2=%" PRIu32 ", num3=%" PRIu32 "\n",
|
||||||
rx_data.num1, rx_data.num2, rx_data.num3);
|
rx_data.num1, rx_data.num2, rx_data.num3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user