bugfixes in start behaviour

git-svn-id: https://svn.fhem.de/fhem/trunk@6519 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klauswitt
2014-09-07 20:40:49 +00:00
parent 6759ca6da8
commit c629f4bc99

View File

@@ -488,8 +488,8 @@ sub RPI_GPIO_fileaccess($$;$) { #Fileaccess for GPIO base directory
my $dir = AttrVal($hash->{NAME},"direction","input");
$dir = $dir eq "input" ? "in" : "out";
if ($dir eq "out" && $fname eq "value" && defined($args[1])) {
my $al = AttrVal($hash->{NAME},"active_low","off");
my $lev = $al eq "on" ? 0 : 1;
my $al = AttrVal($hash->{NAME},"active_low","no");
my $lev = $al eq "yes" ? 0 : 1;
$dir = ($args[1] == $lev ? "high" : "low")
}
#$dir = ($args[1] == 1 ? "high" : "low") if ($dir eq "out" && $fname eq "value" && defined($args[1]));