From f2cfe5247ad62b7b6ca758e9fc915ed78634b190 Mon Sep 17 00:00:00 2001
From: Martino Facchin <m.facchin@arduino.cc>
Date: Thu, 23 Jul 2015 11:33:12 +0200
Subject: [PATCH] fix wrong delay()

the function returned 1 millisecond after the required time
---
 cores/arduino/delay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cores/arduino/delay.c b/cores/arduino/delay.c
index e43131f2..ea000abb 100644
--- a/cores/arduino/delay.c
+++ b/cores/arduino/delay.c
@@ -73,7 +73,7 @@ void delay( uint32_t ms )
   do
   {
     yield() ;
-  } while ( _ulTickCount - start <= ms ) ;
+  } while ( _ulTickCount - start < ms ) ;
 }
 
 #include "Reset.h" // for tickReset()
-- 
GitLab