2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 17:36:39 +00:00

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 3e798b0bee
commit a87edbb150

View File

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