mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
exit SetFn when no argument is given
git-svn-id: https://svn.fhem.de/fhem/trunk@2933 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f85319ea59
commit
beff030f5e
@ -210,6 +210,8 @@ PRESENCE_Set($@)
|
|||||||
{
|
{
|
||||||
my ($hash, @a) = @_;
|
my ($hash, @a) = @_;
|
||||||
|
|
||||||
|
return "No Argument given" if(!defined($a[1]));
|
||||||
|
|
||||||
my $usage = ($hash->{MODE} ne "lan-bluetooth" ? "Unknown argument ".$a[1].", choose one of statusRequest " : undef);
|
my $usage = ($hash->{MODE} ne "lan-bluetooth" ? "Unknown argument ".$a[1].", choose one of statusRequest " : undef);
|
||||||
|
|
||||||
if($a[1] eq "statusRequest")
|
if($a[1] eq "statusRequest")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user