TRX_SECURITY fix for KD101 set

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3145 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig 2013-05-01 17:57:09 +00:00
parent 6d1d425c37
commit 36412e2c9e

View File

@ -150,11 +150,11 @@ TRX_SECURITY_Set($@)
my $id1;
my $id2;
my $id3;
if ($deviceid =~ /(..)(..)/ ) {
if ($deviceid =~ /^(..)(..)$/) {
$id1 = $2;
$id2 = "00";
$id3 = $1;
} elsif ($deviceid =~ /(..)(..)(..)/ ) {
} elsif ($deviceid =~ /^(..)(..)(..)$/) {
$id1 = $1;
$id2 = $2;
$id3 = $3;