aboutsummaryrefslogtreecommitdiff
path: root/libraries/EEPROM/examples/eeprom_crc
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/EEPROM/examples/eeprom_crc')
-rw-r--r--libraries/EEPROM/examples/eeprom_crc/eeprom_crc.ino5
1 files changed, 4 insertions, 1 deletions
diff --git a/libraries/EEPROM/examples/eeprom_crc/eeprom_crc.ino b/libraries/EEPROM/examples/eeprom_crc/eeprom_crc.ino
index a4baacc..8461d56 100644
--- a/libraries/EEPROM/examples/eeprom_crc/eeprom_crc.ino
+++ b/libraries/EEPROM/examples/eeprom_crc/eeprom_crc.ino
@@ -14,7 +14,10 @@ void setup(){
//Start serial
Serial.begin(9600);
-
+ while (!Serial) {
+ ; // wait for serial port to connect. Needed for Leonardo only
+ }
+
//Print length of data to run CRC on.
Serial.print( "EEPROM length: " );
Serial.println( EEPROM.length() );