forked from OSchip/arduino_core_ch32
yield in delay() (#115)
This commit is contained in:
parent
5d8952b9d0
commit
ebf8456c40
|
@ -39,7 +39,7 @@ void delay(uint32_t ms)
|
||||||
if (ms != 0) {
|
if (ms != 0) {
|
||||||
uint32_t start = getCurrentMillis();
|
uint32_t start = getCurrentMillis();
|
||||||
do {
|
do {
|
||||||
// yield();
|
yield();
|
||||||
} while (getCurrentMillis() - start < ms);
|
} while (getCurrentMillis() - start < ms);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue