We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e694ae commit 32dc53fCopy full SHA for 32dc53f
cores/arduino/wiring_time.h
@@ -70,7 +70,7 @@ static inline void delayMicroseconds(uint32_t us)
70
while ((int32_t)dwt_getCycles() - start < cycles);
71
#else
72
uint32_t start = getCurrentMicros();
73
- while ((start + us) > getCurrentMicros());
+ while (getCurrentMicros() - start < us);
74
#endif
75
}
76
0 commit comments