From 80be787b50dbc76af2e7808f652bb0a3fb51d6b4 Mon Sep 17 00:00:00 2001 From: CamDavidsonPilon Date: Sat, 25 Jan 2025 12:04:41 -0500 Subject: [PATCH] more 40 stuff --- pioreactor/automations/temperature/thermostat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pioreactor/automations/temperature/thermostat.py b/pioreactor/automations/temperature/thermostat.py index 73e8c0fa..0ab9bb11 100644 --- a/pioreactor/automations/temperature/thermostat.py +++ b/pioreactor/automations/temperature/thermostat.py @@ -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 @@ -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"