mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-12-06 07:37:38 +00:00
Fix potential bug with wait loops
This commit is contained in:
1 parent
2b0f663482
commit
ebb8a33c1a
5 files changed
+7
-7
No files matched your search
@@ -115,7 +115,7 @@ void delayMilliseconds(unsigned long ms)
|
||||
uint16_t lms = ms ;
|
||||
|
||||
while (lms > 0) {
|
||||
if (((uint16_t)micros() - start) >= 1000) {
|
||||
if ((uint16_t)((uint16_t)micros() - start) >= 1000) {
|
||||
lms--;
|
||||
start += 1000;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user