Skip to content

Commit

Permalink
Serial compatibility with Leonardo/Micro/Zero
Browse files Browse the repository at this point in the history
Serial compatibility with Leonardo/Micro/Zero
  • Loading branch information
andydoro committed Mar 8, 2016
1 parent a39d754 commit 998276c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/sensortest/sensortest.pde
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ void displayRange(void)

void setup(void)
{
#ifndef ESP8266
while (!Serial); // for Leonardo/Micro/Zero
#endif
Serial.begin(9600);
Serial.println("Accelerometer Test"); Serial.println("");

Expand Down

0 comments on commit 998276c

Please sign in to comment.