projects
/
arduinoserial.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdc0587
)
Add a small sleep after serial initialization since the arduino board needs to reboot
author
Thomas Pietrzak
<thomas.pietrzak@gmail.com>
Wed, 7 Mar 2012 10:02:44 +0000
(10:02 +0000)
committer
Thomas Pietrzak
<thomas.pietrzak@gmail.com>
Wed, 7 Mar 2012 10:02:44 +0000
(10:02 +0000)
git-svn-id: svn+ssh://thomaspietrzak.com/var/svn/rep@52
47cf9a05
-e0a8-4ed5-9e9b-
101a649bc004
SerialWindows.cpp
patch
|
blob
|
history
diff --git
a/SerialWindows.cpp
b/SerialWindows.cpp
index 872a7125710de4b698a1a6b0ac03b9d03724f62c..5f490f1c41e40fb1fefa2037b88df18f909f4170 100644
(file)
--- a/
SerialWindows.cpp
+++ b/
SerialWindows.cpp
@@
-102,7
+102,7
@@
SerialWindows::SerialWindows(const char *portName, int baudrate)
//If everything went fine we're connected
\r
_connected = true;
\r
//We wait 2s as the arduino board will be reseting
\r
-
//Sleep(2000
);
\r
+
Sleep(ARDUINO_WAIT_TIME
);
\r
//SDL_Delay(ARDUINO_WAIT_TIME);
\r
}
\r
}
\r