Skip to content

Commit dfb67ee

Browse files
committed
yield() on end of delay() only if yield() is overridden.
1 parent 92c5010 commit dfb67ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ unsigned long IRAM_ATTR millis()
144144
void delay(uint32_t ms)
145145
{
146146
vTaskDelay(ms / portTICK_PERIOD_MS);
147-
yield();
147+
if (yield != __yield) yield();
148148
}
149149

150150
void IRAM_ATTR delayMicroseconds(uint32_t us)

0 commit comments

Comments
 (0)