File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ void setupSensor()
34
34
35
35
void setup ()
36
36
{
37
- while (!Serial); // flora & leonardo
38
-
37
+ #ifndef ESP8266
38
+ while (!Serial); // will pause Zero, Leonardo, etc until serial console opens
39
+ #endif
39
40
Serial.begin (9600 );
40
41
Serial.println (" LSM raw read demo" );
41
42
Original file line number Diff line number Diff line change @@ -142,8 +142,9 @@ void configureSensor(void)
142
142
/* *************************************************************************/
143
143
void setup (void )
144
144
{
145
- while (!Serial); // wait for flora/leonardo
146
-
145
+ #ifndef ESP8266
146
+ while (!Serial); // will pause Zero, Leonardo, etc until serial console opens
147
+ #endif
147
148
Serial.begin (9600 );
148
149
Serial.println (F (" LSM9DS0 9DOF Sensor Test" )); Serial.println (" " );
149
150
You can’t perform that action at this time.
0 commit comments