modified StringSubstring example to add gating on port readiness

This commit is contained in:
Zach Eveland 2012-04-01 12:59:00 -04:00
parent b685aef6ec
commit ae5d5c0c00
1 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,7 @@
Examples of how to use substring in a String
created 27 July 2010
created 27 July 2010, modified 1 April 2012
by Tom Igoe
http://arduino.cc/en/Tutorial/StringSubstring
@ -13,6 +13,9 @@
void setup() {
Serial.begin(9600);
// Wait for port to be opened:
while (!Serial)
;
Serial.println("\n\nString substring():");
}