From 696e794ddea5d3832c10b68293f1e0705514dc2f Mon Sep 17 00:00:00 2001 From: jamesgo <> Date: Thu, 8 Feb 2018 14:55:52 +0000 Subject: [PATCH] 93_PWMR.pm : fix length of PID_I_previousTemps buffer was reset to wrong value in define git-svn-id: https://svn.fhem.de/fhem/trunk@16121 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/93_PWMR.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/93_PWMR.pm b/fhem/FHEM/93_PWMR.pm index 4afe0d460..0d7b87961 100644 --- a/fhem/FHEM/93_PWMR.pm +++ b/fhem/FHEM/93_PWMR.pm @@ -47,6 +47,7 @@ # 01.08.17 GA add documentation for attribute disable # 27.12.17 GA add handle "off" as c_tempFrostProtect and "on" as c_tempC in getDesiredTempFrom (valid form Homematic) # 31.01.18 GA add support for stateFormat +# 08.02.18 GA fix PID_I_previousTemps was shortened to c_PID_DLookBackCnt instead of c_PID_ILookBackCnt in define # module for PWM (Pulse Width Modulation) calculation @@ -685,7 +686,7 @@ PWMR_Define($$) Log3 ($hash, 4, "content of IBuffer is @{$IBuffer}"); # cut Buffer if it is too large - while (scalar @{$IBuffer} > $hash->{c_PID_DLookBackCnt}) { + while (scalar @{$IBuffer} > $hash->{c_PID_ILookBackCnt}) { my $v = shift @{$IBuffer}; }