fix typo in getter

This commit is contained in:
Marko Oldenburg 2019-03-23 13:15:44 +01:00
parent 1450458fcb
commit 1d47b80035

View File

@ -1170,7 +1170,7 @@ sub EventProcessingWind($@) {
if ( $events =~ m#$reading:\s(\d+)# ) {
foreach my $shuttersDev ( @{ $hash->{helper}{shuttersList} } ) {
$shutters->setShuttersDev($shuttersDev);
$shutters->setWindProtection('unprotection') if ( not defined($shutters->getWindPos) );
$shutters->setWindProtection('unprotection') if ( not defined($shutters->getWindProtection) );
next if ( $shutters->getWindMax < 0 );
next if ( CheckIfShuttersWindowRecOpen($shuttersDev) != 0
and $shutters->getShuttersPlace eq 'terrace' );