Skip to content

Commit

Permalink
Corrected Gas reference errors both were a factor of 10 too high
Browse files Browse the repository at this point in the history
  • Loading branch information
G6EJD authored Apr 16, 2018
1 parent 97f4d0d commit 86a20d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ESP32_bme680_CC_demo_02.ino
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ void loop() {
}

//Calculate gas contribution to IAQ index
int gas_lower_limit = 50000; // Bad air quality limit
int gas_upper_limit = 500000; // Good air quality limit
int gas_lower_limit = 5000; // Bad air quality limit
int gas_upper_limit = 50000; // Good air quality limit
  if (gas_reference > gas_upper_limit) gas_reference = gas_upper_limit; 
if (gas_reference < gas_lower_limit) gas_reference = gas_lower_limit;
gas_score = (0.75/(gas_upper_limit-gas_lower_limit)*gas_reference -(gas_lower_limit*(0.75/(gas_upper_limit-gas_lower_limit))))*100;
Expand Down

0 comments on commit 86a20d5

Please sign in to comment.