From 70403912b13fcc385519d112fb9cc1d22475a1f8 Mon Sep 17 00:00:00 2001 From: Jasem Mutlaq Date: Tue, 21 Nov 2023 15:29:51 +0300 Subject: [PATCH] Use BUSY when active --- indi-toupbase/indi_toupbase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indi-toupbase/indi_toupbase.cpp b/indi-toupbase/indi_toupbase.cpp index d7e4e6508..c0d7c49c0 100644 --- a/indi-toupbase/indi_toupbase.cpp +++ b/indi-toupbase/indi_toupbase.cpp @@ -1313,7 +1313,7 @@ bool ToupBase::activateCooler(bool enable) else { m_CoolerS[enable ? INDI_ENABLED : INDI_DISABLED].s = ISS_ON; - m_CoolerSP.s = IPS_OK; + m_CoolerSP.s = enable ? IPS_BUSY : IPS_IDLE; IDSetSwitch(&m_CoolerSP, nullptr); /* turn on TEC may force to turn on the fan */ @@ -1526,6 +1526,7 @@ void ToupBase::TimerHit() m_CoolerTP.s = IPS_ALERT; else if (0 == val) { + m_CoolerTP.s = IPS_IDLE; IUSaveText(&m_CoolerT, "0.0% (OFF)"); IDSetText(&m_CoolerTP, nullptr); } @@ -1539,6 +1540,7 @@ void ToupBase::TimerHit() char str[32]; sprintf(str, "%.1f%%", val * 100.0 / m_maxTecVoltage); IUSaveText(&m_CoolerT, str); + m_CoolerTP.s = IPS_BUSY; IDSetText(&m_CoolerTP, nullptr); } }