2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

98_RandomTimer.pm: next steps towards better PBP conformity II

git-svn-id: https://svn.fhem.de/fhem/trunk@21885 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2020-05-06 20:39:21 +00:00
parent fa60ec1338
commit b1e4b3c1d0

View File

@ -97,7 +97,7 @@ sub Define {
RemoveInternalTimer($hash); RemoveInternalTimer($hash);
my ($name, $type, $timespec_start, $device, $timespec_stop, $timeToSwitch, $variation) = my ($name, $type, $timespec_start, $device, $timespec_stop, $timeToSwitch, $variation) =
split m{\s+}, $def; split m{\s+}xms, $def;
return "wrong syntax: define <name> RandomTimer <timespec_start> <device> <timespec_stop> <timeToSwitch> [<variations>]" return "wrong syntax: define <name> RandomTimer <timespec_start> <device> <timespec_stop> <timeToSwitch> [<variations>]"
if(!defined $timeToSwitch); if(!defined $timeToSwitch);