diff --git a/ESP32-IDF_FreeRTOS/I2C_MultiDevice/main/hello_world_main.c b/ESP32-IDF_FreeRTOS/I2C_MultiDevice/main/hello_world_main.c index 22051edd7..84fd88330 100644 --- a/ESP32-IDF_FreeRTOS/I2C_MultiDevice/main/hello_world_main.c +++ b/ESP32-IDF_FreeRTOS/I2C_MultiDevice/main/hello_world_main.c @@ -82,6 +82,9 @@ void task1(void *pvParameters) { vTaskDelay((500)); // Delay for 1 second xSemaphoreGive(xMutex); } + else { + printf("Task 1 timed out waiting for mutex\n"); + } vTaskDelay((100)); } } @@ -94,6 +97,9 @@ void task2(void *pvParameters) { vTaskDelay((2000)); // Delay for 2 seconds xSemaphoreGive(xMutex); } + else { + printf("Task 2 timed out waiting for mutex\n"); + } vTaskDelay((100)); } }