mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
90_at.pm: Fix modify at from relative to one-time (Forum #90764)
git-svn-id: https://svn.fhem.de/fhem/trunk@17252 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cc27204598
commit
78f76ef7c3
@ -120,9 +120,11 @@ at_Define($$)
|
|||||||
return undef if($cnt eq "0");
|
return undef if($cnt eq "0");
|
||||||
$cnt = 0 if(!$cnt);
|
$cnt = 0 if(!$cnt);
|
||||||
$cnt--;
|
$cnt--;
|
||||||
|
delete($hash->{VOLATILE}); # Modify
|
||||||
$hash->{REP} = $cnt;
|
$hash->{REP} = $cnt;
|
||||||
} else {
|
} else {
|
||||||
$hash->{VOLATILE} = 1; # Write these entries to the statefile
|
$hash->{VOLATILE} = 1; # Write these entries to the statefile
|
||||||
|
delete($hash->{REP}); # Modify
|
||||||
}
|
}
|
||||||
|
|
||||||
my $alTime = AttrVal($name, "alignTime", undef);
|
my $alTime = AttrVal($name, "alignTime", undef);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user