From cf73a91d1b450efc4878f80c20f64b6747f40529 Mon Sep 17 00:00:00 2001 From: pahenning Date: Thu, 25 Oct 2012 16:33:41 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2014 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/1-Wire/21_OWSWITCH.pm | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/fhem/contrib/1-Wire/21_OWSWITCH.pm b/fhem/contrib/1-Wire/21_OWSWITCH.pm index bd4ece0d6..86db81ccb 100644 --- a/fhem/contrib/1-Wire/21_OWSWITCH.pm +++ b/fhem/contrib/1-Wire/21_OWSWITCH.pm @@ -877,14 +877,6 @@ sub OWXSWITCH_SetState($$) { #-- process results @data=split(//,substr($res,10)); - - my $ress = "OWXSWITCH_Set: "; - for($i=0;$i DS2413 if( $hash->{OW_FAMILY} eq "3A" ) { @@ -901,7 +893,8 @@ sub OWXSWITCH_SetState($$) { }elsif( $hash->{OW_FAMILY} eq "29" ) { if( $data[2] ne "\xAA"){ return "OWXSWITCH: State could not be set for device $owx_dev"; - } + } + } return undef }