1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Do not yield during delayMicroseconds

This commit is contained in:
Cristian Maglie 2012-11-03 23:47:32 +01:00
parent a72cfc3087
commit 969e29befb

View File

@ -52,9 +52,9 @@ void delay( uint32_t ms )
void delayMicroseconds( uint32_t us )
{
uint32_t start = micros();
while ((micros() - start) < us)
yield();
uint32_t start = micros();
while ((micros() - start) < us)
;
}
/*