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
This commit is contained in:
@@ -40,7 +40,8 @@
|
|||||||
#
|
#
|
||||||
# 26.03.2014 (betateilchen)
|
# 26.03.2014 (betateilchen)
|
||||||
# code review, pod added, removed old version info (will be provided via SVN)
|
# 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;
|
package main;
|
||||||
use strict;
|
use strict;
|
||||||
@@ -355,7 +356,7 @@ sub PID20_Set($@)
|
|||||||
return "Set stop needs a <value> parameter"
|
return "Set stop needs a <value> parameter"
|
||||||
if ( @a != 2 );
|
if ( @a != 2 );
|
||||||
$hash->{helper}{stopped} =1;
|
$hash->{helper}{stopped} =1;
|
||||||
PID20_Calc($hash);
|
PID20_Calc($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
when ("restart")
|
when ("restart")
|
||||||
@@ -377,7 +378,7 @@ sub PID20_Set($@)
|
|||||||
|
|
||||||
when ("calc") # inofficial function, only for debugging purposes
|
when ("calc") # inofficial function, only for debugging purposes
|
||||||
{
|
{
|
||||||
PID20_Calc($hash);
|
PID20_Calc($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
default
|
default
|
||||||
|
|||||||
Reference in New Issue
Block a user