Skip to content

Commit

Permalink
Use BUSY when active
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Nov 21, 2023
1 parent 781d9ff commit 7040391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion indi-toupbase/indi_toupbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 7040391

Please sign in to comment.