From 5a65b5f2f470dee7acb236a77cdd3ffa8e6733f4 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 11 Mar 2022 22:31:09 -0500 Subject: [PATCH] moved } in serial to avoid double SGP print --- stempayload/Payload_OK_SGP30.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stempayload/Payload_OK_SGP30.ino b/stempayload/Payload_OK_SGP30.ino index 8ce4c2be..ba6047e0 100644 --- a/stempayload/Payload_OK_SGP30.ino +++ b/stempayload/Payload_OK_SGP30.ino @@ -107,7 +107,7 @@ void setup() { /**/ if (! sgp.begin()){ Serial.println("Sensor not found :("); - while (1); +// while (1); } Serial.print("Found SGP30 serial #"); Serial.print(sgp.serialnumber[0], HEX); @@ -300,7 +300,6 @@ void loop() { led_set(blueLED, HIGH); else led_set(blueLED, LOW); - } //SGP SENSOR DATA if (! sgp.IAQmeasure()) { @@ -325,7 +324,8 @@ void loop() { //Serial.print("Raw Ethanol "); Serial.print(sgp.rawEthanol); Serial.println(" "); - } + } + } delay(100); }