2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

TRX_SECURITY fix for KD101 set

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

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;