From 410ae9ed90a29d20e1fd6ae22ab986dca27ef1e4 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Fri, 20 Sep 2019 20:36:47 +0200 Subject: [PATCH] code style --- 73_AutoShuttersControl.pm | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/73_AutoShuttersControl.pm b/73_AutoShuttersControl.pm index 2517c7d..507f0ee 100644 --- a/73_AutoShuttersControl.pm +++ b/73_AutoShuttersControl.pm @@ -2409,16 +2409,19 @@ sub ShuttersCommandSet($$$) { my $name = $hash->{NAME}; $shutters->setShuttersDev($shuttersDev); - if (($posValue == $shutters->getShadingPos - and ( - CheckIfShuttersWindowRecOpen($shuttersDev) == 2 - and $shutters->getShuttersPlace eq 'terrace' - and ( $shutters->getLockOut eq 'soft' - or $shutters->getLockOut eq 'hard' ) - and not $shutters->getQueryShuttersPos($posValue) - ) + if ( + ( + $posValue == $shutters->getShadingPos + and ( + CheckIfShuttersWindowRecOpen($shuttersDev) == 2 + and $shutters->getShuttersPlace eq 'terrace' + and ( $shutters->getLockOut eq 'soft' + or $shutters->getLockOut eq 'hard' ) + and not $shutters->getQueryShuttersPos($posValue) + ) ) - or ($posValue != $shutters->getShadingPos + or ( + $posValue != $shutters->getShadingPos and ( ( $shutters->getPartyMode eq 'on' @@ -2450,9 +2453,9 @@ sub ShuttersCommandSet($$$) { and not $shutters->getQueryShuttersPos($posValue) ) or ( $shutters->getRainProtectionStatus eq 'protected' and $shutters->getWindProtectionStatus eq 'protected' ) - ) ) ) + ) { $shutters->setDelayCmd($posValue); $ascDev->setDelayCmdReading;