fix setPosSetCmd Object

This commit is contained in:
Marko Oldenburg 2018-11-11 17:54:10 +01:00
parent 9ca6a64cf4
commit 6e21b89302

View File

@ -38,7 +38,7 @@ package main;
use strict;
use warnings;
my $version = "0.2.0.2";
my $version = "0.2.0.3";
sub AutoShuttersControl_Initialize($) {
my ($hash) = @_;
@ -670,7 +670,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;