TRX_SECURITY fix for KD101 set

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3145 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig
2013-05-01 17:57:09 +00:00
parent bb3a3c8830
commit 90ed396fd8

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;