mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 11:26:55 +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:
parent
3e798b0bee
commit
a87edbb150
@ -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]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user