mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
I2C_LCD fix setting attribute pinMapping
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5496 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
71076ba21b
commit
d35d62e2ff
@ -153,7 +153,8 @@ I2C_LCD_Attr($$$$) {
|
|||||||
$newMapping{$key} = $value;
|
$newMapping{$key} = $value;
|
||||||
}
|
}
|
||||||
$hash->{mapping} = \%newMapping;
|
$hash->{mapping} = \%newMapping;
|
||||||
I2C_LCD_Init($hash,split (' ',$hash->{DEF})) if ($main::init_done);
|
my @def = split (' ',$hash->{DEF});
|
||||||
|
I2C_LCD_Init($hash,\@def) if ($main::init_done);
|
||||||
last;
|
last;
|
||||||
};
|
};
|
||||||
$main::attr{$name}{$attribute}=$value;
|
$main::attr{$name}{$attribute}=$value;
|
||||||
@ -161,7 +162,8 @@ I2C_LCD_Attr($$$$) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
my $ret = I2C_LCD_Catch($@) if $@;
|
# my $ret = I2C_LCD_Catch($@) if $@;
|
||||||
|
my $ret = $@;
|
||||||
if ($ret) {
|
if ($ret) {
|
||||||
$hash->{STATE} = "error setting $attribute to $value: ".$ret;
|
$hash->{STATE} = "error setting $attribute to $value: ".$ret;
|
||||||
return "cannot $command attribute $attribute to $value for $name: ".$ret;
|
return "cannot $command attribute $attribute to $value for $name: ".$ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user