mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 14:46:24 +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:
parent
2f73b18ac6
commit
13d275e68b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user