2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 16:19:11 +00:00

follow-on-for-timer is more general

git-svn-id: https://svn.fhem.de/fhem/trunk@391 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2009-06-12 09:43:17 +00:00
parent 02921c0956
commit e62a75c823

View File

@ -217,7 +217,7 @@ FS20_Set($@)
CommandDelete(undef, $a[0] . "_timer");
delete $follow{$a[0]};
}
if($a[1] eq "on-for-timer" && $na == 3 &&
if($a[1] =~ m/for-timer/ && $na == 3 &&
defined($attr{$a[0]}) && defined($attr{$a[0]}{"follow-on-for-timer"})) {
my $to = sprintf("%02d:%02d:%02d", $val/3600, ($val%3600)/60, $val%60);
$follow{$a[0]} = $to;