TRX_LIGHT PT2262 set check corrected

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3037 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig 2013-04-05 18:50:00 +00:00
parent 2012866f32
commit a8594b2182

View File

@ -334,14 +334,14 @@ TRX_LIGHT_Set($@)
my $bindata; my $bindata;
my $hexdata; my $hexdata;
if ($command =~ /^[0-2]*$/) { # if it is base4 just append it if ($command =~ /^[0-3]*$/) { # if it is base4 just append it
$pt2262_cmd = $deviceid.$command; $pt2262_cmd = $deviceid.$command;
} else { } else {
return "-999- set PT2262: cmd=$command name=$name not found"; return "-999- set PT2262: cmd=$command name=$name not found";
} }
if (uc($pt2262_cmd) =~ /^[0-2][0-2][0-2][0-2][0-2][0-2][0-2][0-2][0-2][0-2][0-2][0-2]$/ ) { if (uc($pt2262_cmd) =~ /^[0-3][0-3][0-3][0-3][0-3][0-3][0-3][0-3][0-3][0-3][0-3][0-3]$/ ) {
$base_4 = $pt2262_cmd; $base_4 = $pt2262_cmd;
# convert base4 to binary: # convert base4 to binary: