remove debug messages

This commit is contained in:
Marko Oldenburg 2019-02-22 10:16:24 +01:00
parent eb0d8bffcf
commit 0e176974e1

View File

@ -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;
}