Skip to content

Commit

Permalink
change default values for fermenter hysteresis to values that will wo…
Browse files Browse the repository at this point in the history
…rk if users don't read the documentation and don't enter values at all...
  • Loading branch information
avollkopf committed May 9, 2024
1 parent 07ffe0d commit 2180cad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cbpi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "4.4.1.a7"
__version__ = "4.4.1.a8"
__codename__ = "Yeast Starter"

8 changes: 4 additions & 4 deletions cbpi/extension/FermenterHysteresis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ class FermenterHysteresis(CBPiFermenterLogic):

async def run(self):
try:
self.heater_offset_min = float(self.props.get("HeaterOffsetOn", 0))
self.heater_offset_min = float(self.props.get("HeaterOffsetOn", 0.2))
self.heater_offset_max = float(self.props.get("HeaterOffsetOff", 0))
self.cooler_offset_min = float(self.props.get("CoolerOffsetOn", 0))
self.cooler_offset_min = float(self.props.get("CoolerOffsetOn", 0.2))
self.cooler_offset_max = float(self.props.get("CoolerOffsetOff", 0))
self.heater_max_power = int(self.props.get("HeaterMaxPower", 100))
self.cooler_max_power = int(self.props.get("CoolerMaxPower", 100))
Expand Down Expand Up @@ -153,9 +153,9 @@ async def pressure_control(self):
logging.info("No valve or pressure sensor defined")

async def temperature_control(self):
self.heater_offset_min = float(self.props.get("HeaterOffsetOn", 0))
self.heater_offset_min = float(self.props.get("HeaterOffsetOn", 0.2))
self.heater_offset_max = float(self.props.get("HeaterOffsetOff", 0))
self.cooler_offset_min = float(self.props.get("CoolerOffsetOn", 0))
self.cooler_offset_min = float(self.props.get("CoolerOffsetOn", 0.2))
self.cooler_offset_max = float(self.props.get("CoolerOffsetOff", 0))

heater = self.cbpi.actor.find_by_id(self.heater)
Expand Down

0 comments on commit 2180cad

Please sign in to comment.