From 0e176974e194260f63d3a11ce59f21ffb29a4300 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Fri, 22 Feb 2019 10:16:24 +0100 Subject: [PATCH] remove debug messages --- 73_AutoShuttersControl.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/73_AutoShuttersControl.pm b/73_AutoShuttersControl.pm index 8818ec6..4e296dc 100644 --- a/73_AutoShuttersControl.pm +++ b/73_AutoShuttersControl.pm @@ -2059,13 +2059,10 @@ sub IsDay($$) { my $name = $hash->{NAME}; my $isday = ( ShuttersSunrise( $hash, $shuttersDev, 'unix' ) > ShuttersSunset( $hash, $shuttersDev, 'unix' ) ? 1 : 0 ); - - print 'IsDay: ' . $isday . "\n"; $respIsDay = ( ($shutters->getDown eq 'brightness' and $shutters->getBrightness > $shutters->getBrightnessMinVal and $isday) ? 1 : 0 ); - print 'IsDayAbends: ' . $respIsDay . "\n"; + $respIsDay = ( (($shutters->getUp eq 'brightness' and $shutters->getBrightness > $shutters->getBrightnessMaxVal and not $isday) or $respIsDay) ? 1 : 0 ); - print 'IsDayMorgens: ' . $respIsDay . "\n"; return $respIsDay; }