Skip to content

Commit

Permalink
more 40 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Jan 25, 2025
1 parent 9c1fb34 commit 80be787
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pioreactor/automations/temperature/thermostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from pioreactor.utils import clamp
from pioreactor.utils import is_pio_job_running
from pioreactor.utils.streaming_calculations import PID
from pioreactor.whoami import get_pioreactor_model
from pioreactor.whoami import get_pioreactor_version


Expand All @@ -15,9 +16,10 @@ class Thermostat(TemperatureAutomationJob):
Uses a PID controller to change the DC% to match a target temperature.
"""

if get_pioreactor_version() == (1, 0):
if get_pioreactor_model() == "pioreactor_20ml" and get_pioreactor_version() == (1, 0):
MAX_TARGET_TEMP = 50
else:
# made from pccf
MAX_TARGET_TEMP = 70

automation_name = "thermostat"
Expand Down

0 comments on commit 80be787

Please sign in to comment.