Skip to content

Commit

Permalink
Update ESP32_bme680_CC_demo_02.ino
Browse files Browse the repository at this point in the history
Correct gas average value
  • Loading branch information
G6EJD authored Mar 3, 2019
1 parent 82c057e commit b263e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ESP32_bme680_CC_demo_02.ino
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void GetGasReference(){
// Now run the sensor for a burn-in period, then use combination of relative humidity and gas resistance to estimate indoor air quality as a percentage.
Serial.println("Getting a new gas reference value");
int readings = 10;
for (int i = 0; i <= readings; i++){ // read gas for 10 x 0.150mS = 1.5secs
for (int i = 1; i <= readings; i++){ // read gas for 10 x 0.150mS = 1.5secs
gas_reference += bme.readGas();
}
gas_reference = gas_reference / readings;
Expand Down

0 comments on commit b263e59

Please sign in to comment.