Skip to content

Commit

Permalink
Don't try to close the dome if already closed after bad weather (#74)
Browse files Browse the repository at this point in the history
According to isClosed docs: "It is called also outside of the closing sequence, to check if dome is closed when bad weather arrives."

Right now, I get a lot of "closeDomeWeather: domeCloseStart" spam in the logs when it's daytime and the weather station reports bad weather.

This commit avoids all that spam and will only log if it's not closed.
  • Loading branch information
XePeleato authored May 15, 2024
1 parent f1dd40d commit 817ef85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rts2/dome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ int Dome::closeDomeWeather ()
{
if (domeAutoClose == NULL || domeAutoClose->getValueBool () == true)
{
logStream (MESSAGE_DEBUG) << "closeDomeWeather: domeCloseStart" << sendLog;
if (isClosed() != -2) {
logStream(MESSAGE_DEBUG) << "closeDomeWeather: domeCloseStart" << sendLog;
}
ret = domeCloseStart ();
}
setMasterStandby ();
Expand Down

0 comments on commit 817ef85

Please sign in to comment.