Skip to content

Commit de7e463

Browse files
authored
Added vTaskDelay to TaskLed Function
Without Delay, digitalWrite and digitalRead looks like skipped
1 parent 46c65de commit de7e463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Interrupts/Interrupts.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ void TaskLed(void *pvParameters)
7373
if (xSemaphoreTake(interruptSemaphore, portMAX_DELAY) == pdPASS) {
7474
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
7575
}
76-
76+
vTaskDelay(10);
7777
}
7878
}

0 commit comments

Comments
 (0)