From 9ac380b4b2eda5e4ccef69f0b860564f8343dce2 Mon Sep 17 00:00:00 2001 From: Jasem Mutlaq Date: Tue, 21 Nov 2023 15:33:47 +0300 Subject: [PATCH] Do not toggle cooler off if even if temperature is high since cooler could be still needed to maintain a higher temperature --- indi-toupbase/indi_toupbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indi-toupbase/indi_toupbase.cpp b/indi-toupbase/indi_toupbase.cpp index c0d7c49c0..216d30f4a 100644 --- a/indi-toupbase/indi_toupbase.cpp +++ b/indi-toupbase/indi_toupbase.cpp @@ -1268,7 +1268,7 @@ bool ToupBase::StopStreaming() int ToupBase::SetTemperature(double temperature) { // JM 2023.11.21: Only activate cooler if the requested temperature is below current temperature - if (activateCooler(temperature < TemperatureN[0].value) == false) + if (temperature < TemperatureN[0].value && activateCooler(true) == false) { LOG_ERROR("Failed to toggle cooler."); return -1;