Skip to content
Snippets Groups Projects
Commit f2cfe524 authored by Martino Facchin's avatar Martino Facchin
Browse files

fix wrong delay()

the function returned 1 millisecond after the required time
parent ed40dd83
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ void delay( uint32_t ms ) ...@@ -73,7 +73,7 @@ void delay( uint32_t ms )
do do
{ {
yield() ; yield() ;
} while ( _ulTickCount - start <= ms ) ; } while ( _ulTickCount - start < ms ) ;
} }
#include "Reset.h" // for tickReset() #include "Reset.h" // for tickReset()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment