90_at.pm: set correct state after alignTime (Forum #27970)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6797 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-10-21 12:32:19 +00:00
parent bc7fa54f6a
commit 3499e8d2bf

View File

@@ -102,11 +102,11 @@ at_Define($$)
$hash->{TRIGGERTIME_FMT} = FmtDateTime($nt);
RemoveInternalTimer($hash);
InternalTimer($nt, "at_Exec", $hash, 0);
$hash->{NTM} = $ntm if($rel eq "+" || $fn);
$hash->{STATE} = AttrVal($name, "disable", undef) ?
"disabled" : ("Next: ".FmtTime($nt));
}
$hash->{NTM} = $ntm if($rel eq "+" || $fn);
$hash->{STATE} = AttrVal($name, "disable", undef) ?
"disabled" : ("Next: ".FmtTime($nt));
return undef;
}
@@ -189,6 +189,7 @@ at_adjustAlign($$)
$hash->{TRIGGERTIME} = $ttime;
$hash->{TRIGGERTIME_FMT} = FmtDateTime($ttime);
$hash->{STATE} = "Next: " . FmtTime($ttime);
$hash->{NTM} = FmtTime($ttime);
return undef;
}