mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
CUL_HM:Press defaults to short if not argument is passed
git-svn-id: https://svn.fhem.de/fhem/trunk@22609 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
26a995b2f4
commit
8003f56987
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user