2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 20:52:13 +00:00

git-svn-id: https://svn.fhem.de/fhem/trunk@2014 2b470e98-0d58-463d-a4d8-8e2adae1ed80

This commit is contained in:
pahenning 2012-10-25 16:33:41 +00:00
parent a0d5ce9cec
commit 90682101f4

View File

@ -878,14 +878,6 @@ sub OWXSWITCH_SetState($$) {
#-- process results
@data=split(//,substr($res,10));
my $ress = "OWXSWITCH_Set: ";
for($i=0;$i<int(@data);$i++){
my $j=int(ord($data[$i])/16);
my $k=ord($data[$i])%16;
$ress.=sprintf "0x%1x%1x ",$j,$k;
}
Log 1, $ress;
#-- family = 3A => DS2413
if( $hash->{OW_FAMILY} eq "3A" ) {
if( $data[2] ne "\xAA"){
@ -902,6 +894,7 @@ sub OWXSWITCH_SetState($$) {
if( $data[2] ne "\xAA"){
return "OWXSWITCH: State could not be set for device $owx_dev";
}
}
return undef
}