possible minor bug in 95_Astro.pm

Begonnen von Wallyllama, 06 August 2024, 20:25:52

Vorheriges Thema - Nächstes Thema

Wallyllama

I came across this while looking for other things in my log file.
2024.08.06 13:01:43 1: PERL WARNING: Argument "-zone" isn't numeric in numeric lt (<) at ./FHEM/95_Astro.pm line 1864.

I made the following change and it went away.
-      if ($rise<-$zone || $transit<-zone || $set<-zone) {
+      if ($rise<-$zone || $transit<-$zone || $set<-$zone) {

I only see it after I do a restart, so I have no idea if it fixed something, or merely reduced my log file by 218 bytes

Prof. Dr. Peter Henning

OK, thanks, I'll take care of this.

Regards

pah