fix setPosSetCmd

This commit is contained in:
Marko Oldenburg
2018-11-12 09:12:04 +01:00
parent 2bd8e4660f
commit 2c9b546a2f

View File

@@ -39,7 +39,7 @@ package main;
use strict; use strict;
use warnings; use warnings;
my $version = "0.2.1dev8"; my $version = "0.2.1dev9";
sub AutoShuttersControl_Initialize($) { sub AutoShuttersControl_Initialize($) {
my ($hash) = @_; my ($hash) = @_;
@@ -674,7 +674,7 @@ sub ShuttersDeviceScan($) {
$shutters->setLastPos( $shutters->getStatus ); $shutters->setLastPos( $shutters->getStatus );
$shutters->setDelayCmd('none'); $shutters->setDelayCmd('none');
$shutters->setNoOffset(0); $shutters->setNoOffset(0);
$shutters->setPosSetCmd( $posSetCmds{ $hash->{TYPE} } ); $shutters->setPosSetCmd( $posSetCmds{ $defs{$_}->{TYPE} } );
} }
$hash->{NOTIFYDEV} = $hash->{NOTIFYDEV} . $shuttersList; $hash->{NOTIFYDEV} = $hash->{NOTIFYDEV} . $shuttersList;