OWX: allow to pass ARRAY-ref to OWX_CRC
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5439 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -404,6 +404,10 @@ sub OWX_CRC ($) {
|
||||
$crc8 = $crc8_table[ $crc8 ^ $owx_ROM_ID[$i] ];
|
||||
}
|
||||
return $crc8;
|
||||
} elsif (ref($romid) eq "ARRAY") {
|
||||
for(my $i=0; $i<8; $i++){
|
||||
$crc8 = $crc8_table[ $crc8 ^ $romid->[$i] ];
|
||||
}
|
||||
} else {
|
||||
#-- from search string to byte id
|
||||
$romid=~s/\.//g;
|
||||
|
||||
Reference in New Issue
Block a user