Skip to content

Commit

Permalink
Update ESP32_bme680_CC_demo_02.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
G6EJD authored Oct 25, 2018
1 parent 4a64cc1 commit 82c057e
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 = 5000; // Bad air quality limit
int gas_upper_limit = 50000; // Good air quality limit
float gas_lower_limit = 5000; // Bad air quality limit
float 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 82c057e

Please sign in to comment.