mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 16:05:19 +00:00
:for debug only
git-svn-id: https://svn.fhem.de/fhem/trunk@27256 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
54ec306e5b
commit
5c7a2d560c
@ -107,6 +107,8 @@ sub Attr {
|
|||||||
|
|
||||||
if($a[2] eq "onDefineFn") {
|
if($a[2] eq "onDefineFn") {
|
||||||
if($a[0] eq "set"){
|
if($a[0] eq "set"){
|
||||||
|
$a[3] = "main::$a[3]" if $a[3] !~ m/::/;
|
||||||
|
return "Please define function $a[3] first!" if !defined &{$a[3]};
|
||||||
InternalTimer(0,$a[3],$a[1],1);
|
InternalTimer(0,$a[3],$a[1],1);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user