fix getLastDrive
This commit is contained in:
parent
3945163b28
commit
483523c6f8
@ -38,7 +38,7 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my $version = "0.1.91";
|
my $version = "0.1.92";
|
||||||
|
|
||||||
sub AutoShuttersControl_Initialize($) {
|
sub AutoShuttersControl_Initialize($) {
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
@ -2031,6 +2031,8 @@ sub SetCmdFn($) {
|
|||||||
if ( $shutters->getStatus != $posValue ) {
|
if ( $shutters->getStatus != $posValue ) {
|
||||||
$shutters->setLastPos( $shutters->getStatus );
|
$shutters->setLastPos( $shutters->getStatus );
|
||||||
$shutters->setLastDriveReading;
|
$shutters->setLastDriveReading;
|
||||||
|
}
|
||||||
|
else {
|
||||||
$shutters->setLastDrive(
|
$shutters->setLastDrive(
|
||||||
ReadingsVal( $shuttersDev, 'ASC_ShuttersLastDrive', 'none' ) );
|
ReadingsVal( $shuttersDev, 'ASC_ShuttersLastDrive', 'none' ) );
|
||||||
}
|
}
|
||||||
@ -3228,4 +3230,3 @@ sub getRainSensorShuttersClosedPos {
|
|||||||
=end html_DE
|
=end html_DE
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user