Browse Source

Fix delay when yield longer than 1ms

teensy4-core
PaulStoffregen 9 years ago
parent
commit
59a7b221fa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy3/pins_teensy.c

+ 1
- 1
teensy3/pins_teensy.c View File

@@ -1100,7 +1100,7 @@ void delay(uint32_t ms)

if (ms > 0) {
while (1) {
if ((micros() - start) >= 1000) {
while ((micros() - start) >= 1000) {
ms--;
if (ms == 0) return;
start += 1000;

Loading…
Cancel
Save