This commit is contained in:
2025-08-05 01:53:12 -04:00
parent 92bdf067d0
commit 277b5e73bd

View File

@@ -76,7 +76,7 @@ void app_main(void)
void task1(void *pvParameters) {
while (1) {
if (xSemaphoreTake(xMutex, portMAX_DELAY)) {
if (xSemaphoreTake(xMutex, 1500)) {
printf("Task 1 is running\n");
printf("This is Task #1\n\n");
vTaskDelay((500)); // Delay for 1 second
@@ -88,7 +88,7 @@ void task1(void *pvParameters) {
void task2(void *pvParameters) {
while (1) {
if (xSemaphoreTake(xMutex, portMAX_DELAY)) {
if (xSemaphoreTake(xMutex, 1500)) {
printf("Task 2 is running\n");
printf("This is Task #2\n\n");
vTaskDelay((2000)); // Delay for 2 seconds