diff options
Diffstat (limited to 'libraries/Ethernet/examples/ChatServer/ChatServer.ino')
| -rw-r--r-- | libraries/Ethernet/examples/ChatServer/ChatServer.ino | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/libraries/Ethernet/examples/ChatServer/ChatServer.ino b/libraries/Ethernet/examples/ChatServer/ChatServer.ino index de75257..d50e5a6 100644 --- a/libraries/Ethernet/examples/ChatServer/ChatServer.ino +++ b/libraries/Ethernet/examples/ChatServer/ChatServer.ino @@ -12,7 +12,7 @@   created 18 Dec 2009   by David A. Mellis - modified 12 March 2012 + modified 9 Apr 2012   by Tom Igoe   */ @@ -39,8 +39,13 @@ void setup() {    Ethernet.begin(mac, ip, gateway, subnet);    // start listening for clients    server.begin(); -  // open the serial port + // Open serial communications and wait for port to open:    Serial.begin(9600); +   while (!Serial) { +    ; // wait for serial port to connect. Needed for Leonardo only +  } + +    Serial.print("Chat server address:");    Serial.println(Ethernet.localIP());  }  | 
