mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 20:06:18 +00:00
Better error message
git-svn-id: https://svn.fhem.de/fhem/trunk@1505 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dc77c79152
commit
e6c9a00dbc
@ -4,7 +4,6 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
|
|
||||||
my %codes = (
|
my %codes = (
|
||||||
"00" => "off",
|
"00" => "off",
|
||||||
"01" => "dim06%",
|
"01" => "dim06%",
|
||||||
@ -142,7 +141,7 @@ FS20_SetState($$$$)
|
|||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
(undef, $val) = ReplaceEventMap($name, [$name, $val], 0)
|
(undef, $val) = ReplaceEventMap($name, [$name, $val], 0)
|
||||||
if($attr{$name}{eventMap});
|
if($attr{$name}{eventMap});
|
||||||
return "Undefined value $val" if(!defined($fs20_c2b{$val}));
|
return "setstate $name: undefined value $val" if(!defined($fs20_c2b{$val}));
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user