2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

CUL_MAX: fix not being able to set attr IODev

git-svn-id: https://svn.fhem.de/fhem/trunk@2763 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre 2013-02-19 01:03:16 +00:00
parent 99662d6069
commit 20e65ff124

View File

@ -126,8 +126,8 @@ CUL_MAX_Attr(@)
{
my ($hash, $action, $name, $attr, $value) = @_;
if ($action eq "set") {
return "No such attribute" if($attr ne "fakeWTaddr" && $attr ne "fakeSCaddr");
return "Invalid value" if($value !~ /^[0-9a-fA-F]{6}$/);
return "No such attribute" if($attr !~ ["fakeWTaddr", "fakeSCaddr", "IODev"]);
return "Invalid value" if($attr ~~ ["fakeWTaddr", "fakeSCaddr"] && $value !~ /^[0-9a-fA-F]{6}$/);
}
}