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