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:
parent
a72cfc3087
commit
969e29befb
@ -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)
|
||||
;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user