bugfix shutter drive detection
This commit is contained in:
parent
74073aea09
commit
23b0333c88
@ -3759,9 +3759,11 @@ sub IsWeTomorrow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub _SetCmdFn($) {
|
sub _SetCmdFn($) {
|
||||||
my $h = shift;
|
my $h = shift;
|
||||||
my $shuttersDev = $h->{shuttersDev};
|
my $shuttersDev = $h->{shuttersDev};
|
||||||
my $posValue = $h->{posValue};
|
my $posValue = $h->{posValue};
|
||||||
|
my $idleDetectionValue = $shutters->getIdleDetectionValue;
|
||||||
|
my $idleDetection = $shutters->getIdleDetection;
|
||||||
|
|
||||||
$shutters->setShuttersDev($shuttersDev);
|
$shutters->setShuttersDev($shuttersDev);
|
||||||
$shutters->setLastDrive( $h->{lastDrive} )
|
$shutters->setLastDrive( $h->{lastDrive} )
|
||||||
@ -3770,8 +3772,8 @@ sub _SetCmdFn($) {
|
|||||||
return
|
return
|
||||||
unless ( $shutters->getASCenable eq 'on'
|
unless ( $shutters->getASCenable eq 'on'
|
||||||
and $ascDev->getASCenable eq 'on'
|
and $ascDev->getASCenable eq 'on'
|
||||||
and ($shutters->getIdleDetection =~ /^$shutters->getIdleDetectionValue$/
|
and ($idleDetection =~ /^$idleDetectionValue$/
|
||||||
or $shutters->getIdleDetection eq 'none')
|
or $idleDetection eq 'none')
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( $shutters->getStatus != $posValue ) {
|
if ( $shutters->getStatus != $posValue ) {
|
||||||
@ -4752,7 +4754,7 @@ sub getIdleDetectionValue {
|
|||||||
$self->{ $self->{shuttersDev} }->{ASC_Shutter_IdleDetection}->{LASTGETTIME} )
|
$self->{ $self->{shuttersDev} }->{ASC_Shutter_IdleDetection}->{LASTGETTIME} )
|
||||||
< 2
|
< 2
|
||||||
);
|
);
|
||||||
$shutters->_getRunStateReading;
|
$shutters->_getIdleDetectionReading;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
defined( $self->{ $self->{shuttersDev} }->{ASC_Shutter_IdleDetection}->{value} )
|
defined( $self->{ $self->{shuttersDev} }->{ASC_Shutter_IdleDetection}->{value} )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user