From cbc90487996b00e1cde49fab5e75dc195cd5692b Mon Sep 17 00:00:00 2001 From: d-buchmann Date: Thu, 2 Dec 2021 10:49:52 +0100 Subject: [PATCH] remove unneeded parens --- octoprint_enclosure/BME680.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/octoprint_enclosure/BME680.py b/octoprint_enclosure/BME680.py index e5eb39f..3f21d22 100644 --- a/octoprint_enclosure/BME680.py +++ b/octoprint_enclosure/BME680.py @@ -70,9 +70,9 @@ else: 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)