fhem.pl: fix follow-on-for-timer statefile bug, forum #23096

git-svn-id: https://svn.fhem.de/fhem/trunk@5709 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-05-01 08:19:44 +00:00
parent 8268486442
commit 97560a076d

View File

@@ -1228,8 +1228,11 @@ WriteStatefile()
foreach my $d (sort keys %defs) {
next if($defs{$d}{TEMPORARY});
print SFH "define $d $defs{$d}{TYPE} $defs{$d}{DEF}\n"
if($defs{$d}{VOLATILE});
if($defs{$d}{VOLATILE}) {
my $def = $defs{$d}{DEF};
$def =~ s/;/;;/g; # follow-on-for-timer at
print SFH "define $d $defs{$d}{TYPE} $def\n";
}
my $val = $defs{$d}{STATE};
if(defined($val) &&