mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 01:14:19 +00:00
add lock as level to winmatic
git-svn-id: https://svn.fhem.de/fhem/trunk@6304 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0e0e00db81
commit
f43704a452
@ -3442,8 +3442,11 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
|
|||||||
my (undef,undef,$lvl,$rLocDly,$speed) = @a;
|
my (undef,undef,$lvl,$rLocDly,$speed) = @a;
|
||||||
$rLocDly = 111600 if (!defined($rLocDly)||$rLocDly eq "ignore");# defaults
|
$rLocDly = 111600 if (!defined($rLocDly)||$rLocDly eq "ignore");# defaults
|
||||||
$speed = 30 if (!defined($speed));
|
$speed = 30 if (!defined($speed));
|
||||||
|
$lvl = 127.5 if ($lvl eq "lock");
|
||||||
return "please enter level 0 to 100" if (!defined($lvl) || $lvl !~ m/^\d*\.?\d?$/ || $lvl>100);
|
return "please enter level 0 to 100 or lock"
|
||||||
|
if ( !defined($lvl)
|
||||||
|
|| $lvl !~ m/^\d*\.?\d?$/
|
||||||
|
|| ($lvl > 100 && $lvl != 127.5));
|
||||||
return "reloclDelay range 0..65535 or ignore"
|
return "reloclDelay range 0..65535 or ignore"
|
||||||
if ( $rLocDly > 111600 ||
|
if ( $rLocDly > 111600 ||
|
||||||
($rLocDly < 0.1 && $rLocDly ne '0' ));
|
($rLocDly < 0.1 && $rLocDly ne '0' ));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user