Skip to content

Commit

Permalink
remove unneeded parens
Browse files Browse the repository at this point in the history
  • Loading branch information
d-buchmann committed Dec 2, 2021
1 parent 190b11b commit cbc9048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octoprint_enclosure/BME680.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def CalculateIAQ(score):
gas_lower_limit = float(5000) # Bad air quality limit
gas_upper_limit = float(50000) # Good air quality limit

if (gas_reference > gas_upper_limit):
if gas_reference > gas_upper_limit:
gas_reference = gas_upper_limit
if (gas_reference < gas_lower_limit):
if gas_reference < gas_lower_limit:
gas_reference = gas_lower_limit

gas_score = float((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 cbc9048

Please sign in to comment.