From 34aba2d2968f0e68e38b069d35260e326041026f Mon Sep 17 00:00:00 2001 From: Byte09 Date: Tue, 3 Dec 2019 04:45:47 +0000 Subject: [PATCH] 98_MSwitch.pm: Bugfix git-svn-id: https://svn.fhem.de/fhem/trunk@20649 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_MSwitch.pm | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/fhem/FHEM/98_MSwitch.pm b/fhem/FHEM/98_MSwitch.pm index f04465115..7278779ac 100644 --- a/fhem/FHEM/98_MSwitch.pm +++ b/fhem/FHEM/98_MSwitch.pm @@ -3815,8 +3815,8 @@ my $NOCONDITION; my $MSDISTRIBUTORTEXT; my $MSDISTRIBUTOREVENT; my $NOSPACE; -my $MSTEST1; -my $MSTEST2; +my $MSTEST1=""; +my $MSTEST2=""; my $EXECCMD; if (AttrVal( $Name, 'MSwitch_Language',AttrVal( 'global', 'language', 'EN' ) ) eq "DE") @@ -5076,10 +5076,7 @@ $controlhtml=~ s/#/\n/g; $savedetails{ $aktdevice . '_showreihe' } = '1'; } - - - - + $savedetails{ $aktdevice . '_onarg' } =~ s/#\[ti\]/~/g; $savedetails{ $aktdevice . '_offarg' } =~ s/#\[ti\]/~/g; @@ -5302,7 +5299,8 @@ $controlhtml=~ s/#/\n/g; "; - + if ( AttrVal( $Name, 'MSwitch_Debug', "0" ) eq '1' ) + { $MSTEST1=""; @@ -5310,7 +5308,7 @@ $MSTEST1=""; - +} } @@ -5333,7 +5331,11 @@ $MSTEST2=""; - + + + + if ( AttrVal( $Name, 'MSwitch_Debug', "0" ) eq '1' ) + { $MSTEST1=""; @@ -5342,7 +5344,7 @@ $MSTEST2=""; - +} @@ -6490,13 +6492,7 @@ $extrakthtml =~m/(.*)/ ; $triggerdetailhtml=$1; $triggerdetailhtml=~ s/#/\n/g; - - - - - - - + my $selectedcheck3 = ""; my $SELF = $Name; my $testlog = ReadingsVal( $Name, 'Trigger_log', 'on' );