mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-24 02:59:22 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@2014 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a0d5ce9cec
commit
90682101f4
@ -878,14 +878,6 @@ sub OWXSWITCH_SetState($$) {
|
|||||||
#-- process results
|
#-- process results
|
||||||
@data=split(//,substr($res,10));
|
@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
|
#-- family = 3A => DS2413
|
||||||
if( $hash->{OW_FAMILY} eq "3A" ) {
|
if( $hash->{OW_FAMILY} eq "3A" ) {
|
||||||
if( $data[2] ne "\xAA"){
|
if( $data[2] ne "\xAA"){
|
||||||
@ -902,6 +894,7 @@ sub OWXSWITCH_SetState($$) {
|
|||||||
if( $data[2] ne "\xAA"){
|
if( $data[2] ne "\xAA"){
|
||||||
return "OWXSWITCH: State could not be set for device $owx_dev";
|
return "OWXSWITCH: State could not be set for device $owx_dev";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return undef
|
return undef
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user