From bc7fa54f6a5fae4d59d4e56c2c95dd567e18871a Mon Sep 17 00:00:00 2001 From: john99sr Date: Mon, 20 Oct 2014 21:17:57 +0000 Subject: [PATCH] 98_PID20 : fix in sub PID20_Set : wrong parameter, when calling PID20_Calc git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6796 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_PID20.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/98_PID20.pm b/fhem/FHEM/98_PID20.pm index f44c8411d..87ccd5a48 100644 --- a/fhem/FHEM/98_PID20.pm +++ b/fhem/FHEM/98_PID20.pm @@ -40,7 +40,8 @@ # # 26.03.2014 (betateilchen) # code review, pod added, removed old version info (will be provided via SVN) - +# V 1.01 +# 19.10.2014 fix in sub PID20_Set : wrong parameter $hash instead of $name, when calling PID20_Calc #################################################################################################### package main; use strict; @@ -355,7 +356,7 @@ sub PID20_Set($@) return "Set stop needs a parameter" if ( @a != 2 ); $hash->{helper}{stopped} =1; - PID20_Calc($hash); + PID20_Calc($name); } when ("restart") @@ -377,7 +378,7 @@ sub PID20_Set($@) when ("calc") # inofficial function, only for debugging purposes { - PID20_Calc($hash); + PID20_Calc($name); } default