2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +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:
rudolfkoenig 2018-09-02 09:35:58 +00:00
parent cc27204598
commit 78f76ef7c3

View File

@ -120,9 +120,11 @@ at_Define($$)
return undef if($cnt eq "0");
$cnt = 0 if(!$cnt);
$cnt--;
delete($hash->{VOLATILE}); # Modify
$hash->{REP} = $cnt;
} else {
$hash->{VOLATILE} = 1; # Write these entries to the statefile
delete($hash->{REP}); # Modify
}
my $alTime = AttrVal($name, "alignTime", undef);