Skip to content

Commit 969e29b

Browse files
committed
Do not yield during delayMicroseconds
1 parent a72cfc3 commit 969e29b

File tree

1 file changed

+3
-3
lines changed
  • hardware/arduino/sam/cores/arduino

1 file changed

+3
-3
lines changed

hardware/arduino/sam/cores/arduino/wiring.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ void delay( uint32_t ms )
5252

5353
void delayMicroseconds( uint32_t us )
5454
{
55-
uint32_t start = micros();
56-
while ((micros() - start) < us)
57-
yield();
55+
uint32_t start = micros();
56+
while ((micros() - start) < us)
57+
;
5858
}
5959

6060
/*

0 commit comments

Comments
 (0)