2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

00_TCM: logging corrected

git-svn-id: https://svn.fhem.de/fhem/trunk@11978 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klaus-schauer 2016-08-17 04:23:32 +00:00
parent 3b945e13e7
commit c8fd193a63

View File

@ -727,7 +727,7 @@ sub TCM_Set($@)
my $cmdHex = $cmdhash->{cmd};
my $argre = $cmdhash->{arg};
my $logArg = $arg;
my $logArg = defined($arg) ? $arg : '';
if($argre) {
return "Argument needed for set $name $cmd ($argre)" if (!defined($arg));
return "Argument does not match the regexp ($argre)" if ($arg !~ m/$argre/i);