Duplicate fingerprint missing

git-svn-id: https://svn.fhem.de/fhem/trunk@3431 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-07-15 21:15:14 +00:00
parent 8a1e617ea7
commit de520ba3e2

View File

@@ -16,6 +16,7 @@ CUL_RFR_Initialize($)
$hash->{Match} = "^[0-9A-F]{4}U.";
$hash->{DefFn} = "CUL_RFR_Define";
$hash->{FingerprintFn} = "RFR_FingerprintFn";
$hash->{UndefFn} = "CUL_RFR_Undef";
$hash->{ParseFn} = "CUL_RFR_Parse";
$hash->{AttrList} = "IODev do_not_notify:0,1 model:CUL,CUN,CUR " .
@@ -28,6 +29,17 @@ CUL_RFR_Initialize($)
}
sub
RFR_FingerprintFn($$)
{
my ($name, $msg) = @_;
# Store only the "relevant" part, as the CUL won't compute the checksum
$msg = substr($msg, 8) if($msg =~ m/^81/ && length($msg) > 8);
return ($name, $msg);
}
#####################################
sub
CUL_RFR_Define($$)