mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 09:55:38 +00:00
76_Solarforcast: contrib 0.79.0
git-svn-id: https://svn.fhem.de/fhem/trunk@27583 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2e57ef23d0
commit
796050030a
@ -2638,7 +2638,7 @@ sub Attr {
|
||||
}
|
||||
|
||||
if ($aName eq "ctrlUserExitFn") {
|
||||
if($cmd eq "set") {
|
||||
if($cmd eq "set" && $init_done) {
|
||||
if(!$aVal || $aVal !~ m/^\s*(\{.*\})\s*$/xs) {
|
||||
return "Usage of $aName is wrong. The function has to be specified as \"{<your own code>}\" ";
|
||||
}
|
||||
@ -10694,9 +10694,6 @@ sub userExit {
|
||||
|
||||
my $r;
|
||||
|
||||
#$value =~ s/\\/\\\\/g; # escapen of chars for evaluation
|
||||
#$value =~ s/'/\\'/g;
|
||||
|
||||
$uefn = join ' ', split(/\s+/sx, $uefn); # Funktion aus Attr ctrlUserExitFn serialisieren
|
||||
|
||||
if ($uefn =~ m/^\s*(\{.*\})\s*$/xs) { # unnamed Funktion direkt in ctrlUserExitFn mit {...}
|
||||
|
Loading…
x
Reference in New Issue
Block a user