2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 20:24:36 +00:00

90_at.pm: allow * for absolute functions

git-svn-id: https://svn.fhem.de/fhem/trunk@23280 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-12-02 13:54:35 +00:00
parent 2f73b18ac6
commit 13d275e68b

View File

@ -61,7 +61,7 @@ at_Define($$)
}
return "Wrong timespec, use \"[+][*[{count}]]<time or func>\""
if($tm !~ m/^(\+)?(\*(\{\d+\})?)?(.*)$/);
if($tm !~ m/^(\+)?(\*(\{\d+\})?)?(.+)$/);
my ($rel, $rep, $cnt, $tspec) = ($1, $2, $3, $4);
my ($abstime, $err, $hr, $min, $sec, $fn);
@ -75,7 +75,7 @@ at_Define($$)
} else {
($err, $hr, $min, $sec, $fn) = GetTimeSpec($tspec);
if($err) { # $fn contains the result, try again
my $ntspec = $fn;
my $ntspec = ($fn ? $fn : "");
$fn = undef;
if($ntspec =~ m/^\d{10}$/) {
$abstime = $ntspec;