Skip to content

Commit

Permalink
Do not toggle cooler off if even if temperature is high since cooler …
Browse files Browse the repository at this point in the history
…could be still needed to maintain a higher temperature
  • Loading branch information
knro committed Nov 21, 2023
1 parent 7040391 commit 9ac380b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indi-toupbase/indi_toupbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9ac380b

Please sign in to comment.