yield in delay() (#115)

This commit is contained in:
Ha Thach 2024-06-11 09:46:49 +07:00 committed by GitHub
parent 5d8952b9d0
commit ebf8456c40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ void delay(uint32_t ms)
if (ms != 0) {
uint32_t start = getCurrentMillis();
do {
// yield();
yield();
} while (getCurrentMillis() - start < ms);
}
}