Skip to content

Commit f2cfe52

Browse files
committed
fix wrong delay()
the function returned 1 millisecond after the required time
1 parent ed40dd8 commit f2cfe52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/delay.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void delay( uint32_t ms )
7373
do
7474
{
7575
yield() ;
76-
} while ( _ulTickCount - start <= ms ) ;
76+
} while ( _ulTickCount - start < ms ) ;
7777
}
7878

7979
#include "Reset.h" // for tickReset()

0 commit comments

Comments
 (0)