diff --git a/73_AutoShuttersControl.pm b/73_AutoShuttersControl.pm index a58608e..c71b67e 100644 --- a/73_AutoShuttersControl.pm +++ b/73_AutoShuttersControl.pm @@ -3766,13 +3766,13 @@ sub _SetCmdFn($) { my $h = shift; my $shuttersDev = $h->{shuttersDev}; my $posValue = $h->{posValue}; - my $idleDetectionValue = $shutters->getIdleDetectionValue; - my $idleDetection = $shutters->getIdleDetection; $shutters->setShuttersDev($shuttersDev); $shutters->setLastDrive( $h->{lastDrive} ) if ( defined( $h->{lastDrive} ) ); + my $idleDetectionValue = $shutters->getIdleDetectionValue; + my $idleDetection = $shutters->getIdleDetection; return unless ( $shutters->getASCenable eq 'on'