From: Thomas Pietrzak Date: Wed, 7 Mar 2012 10:02:44 +0000 (+0000) Subject: Add a small sleep after serial initialization since the arduino board needs to reboot X-Git-Url: https://git.thomaspietrzak.com/?a=commitdiff_plain;h=c9dada1801e6f1b88b680587d0a15bc5ba0a8cba;p=arduinoserial.git 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 --- 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); } }