From c9dada1801e6f1b88b680587d0a15bc5ba0a8cba Mon Sep 17 00:00:00 2001 From: Thomas Pietrzak Date: Wed, 7 Mar 2012 10:02:44 +0000 Subject: [PATCH] Add a small sleep after serial initialization since the arduino board needs to reboot git-svn-id: svn+ssh://thomaspietrzak.com/var/svn/rep@52 47cf9a05-e0a8-4ed5-9e9b-101a649bc004 --- SerialWindows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SerialWindows.cpp b/SerialWindows.cpp index 872a712..5f490f1 100644 --- a/SerialWindows.cpp +++ b/SerialWindows.cpp @@ -102,7 +102,7 @@ SerialWindows::SerialWindows(const char *portName, int baudrate) //If everything went fine we're connected _connected = true; //We wait 2s as the arduino board will be reseting - //Sleep(2000); + Sleep(ARDUINO_WAIT_TIME); //SDL_Delay(ARDUINO_WAIT_TIME); } } -- 2.30.2