CUL_HM:Press defaults to short if not argument is passed

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@22609 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2020-08-15 14:16:10 +00:00
parent a6b57f8547
commit 9b9ff32c4a

View File

@ -6044,10 +6044,9 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
}
else{
if (defined $a[2]){
if ($a[2] eq "long") {$type = "L"}
elsif($a[2] eq "short"){$type = "S"}
else {return "use either short or long"}
splice @a,2,1; # remove long/short
if ($a[2] eq "long") {$type = "L";splice @a,2,1;}
elsif($a[2] eq "short"){$type = "S";splice @a,2,1;}
# remove long/short
}
}