2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

TRX_LIGHT PT2262 set check corrected

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

View File

@ -334,14 +334,14 @@ TRX_LIGHT_Set($@)
my $bindata;
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;
} else {
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;
# convert base4 to binary: