mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Do not yield during delayMicroseconds
This commit is contained in:
@ -52,9 +52,9 @@ void delay( uint32_t ms )
|
|||||||
|
|
||||||
void delayMicroseconds( uint32_t us )
|
void delayMicroseconds( uint32_t us )
|
||||||
{
|
{
|
||||||
uint32_t start = micros();
|
uint32_t start = micros();
|
||||||
while ((micros() - start) < us)
|
while ((micros() - start) < us)
|
||||||
yield();
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user