Skip to content

Commit 4f89146

Browse files
committed
yield() on end of delay() for minimum Arduino compatibility.
1 parent 4c7655d commit 4f89146

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: cores/esp32/esp32-hal-misc.c

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ unsigned long IRAM_ATTR millis()
144144
void delay(uint32_t ms)
145145
{
146146
vTaskDelay(ms / portTICK_PERIOD_MS);
147+
yield();
147148
}
148149

149150
void IRAM_ATTR delayMicroseconds(uint32_t us)

0 commit comments

Comments
 (0)