From 99fa2a9da95e572979e2c2d01c8edaf0b47a86ed Mon Sep 17 00:00:00 2001 From: Eduardo Alonso Date: Sun, 17 Mar 2024 16:58:20 +0100 Subject: [PATCH] Don't try to close the dome if already closed after bad weather 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 (and try to close the dome) if it's not closed. --- lib/rts2/dome.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rts2/dome.cpp b/lib/rts2/dome.cpp index 92fcc2093..3facea935 100644 --- a/lib/rts2/dome.cpp +++ b/lib/rts2/dome.cpp @@ -308,7 +308,7 @@ int Dome::idle () setMasterOn (); } } - else + else if (isClosed () != -2) { int ret; ret = closeDomeWeather ();