From f22562bb9ed047de5cf32dac2e182f2aaff6a2d0 Mon Sep 17 00:00:00 2001 From: pahenning Date: Thu, 25 Oct 2012 16:33:41 +0000 Subject: [PATCH] git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2014 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- contrib/1-Wire/21_OWSWITCH.pm | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/contrib/1-Wire/21_OWSWITCH.pm b/contrib/1-Wire/21_OWSWITCH.pm index bd4ece0d6..86db81ccb 100644 --- a/contrib/1-Wire/21_OWSWITCH.pm +++ b/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 }