Skip to content

Commit

Permalink
Don't try to close the dome if already closed after bad weather
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 committed Apr 1, 2024
1 parent 6ac8bf7 commit dde6917
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rts2/dome.cpp
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 dde6917

Please sign in to comment.