mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
14_CUL_MAX: check that address has 6 digits
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7004 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7efd8522ac
commit
ebb5596cd3
@ -85,6 +85,11 @@ CUL_MAX_Define($$)
|
||||
}
|
||||
$modules{CUL_MAX}{defptr} = $hash;
|
||||
|
||||
if (length($a[2]) != 6) {
|
||||
Log 1, "The adress must be 6 hexadecimal digits";
|
||||
return "The adress must be 6 hexadecimal digits";
|
||||
}
|
||||
|
||||
$hash->{addr} = lc($a[2]);
|
||||
$hash->{STATE} = "Defined";
|
||||
$hash->{cnt} = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user