94_PWM.pm : fix access to reading maxOffTimeCalculation reported by stromer-12

git-svn-id: https://svn.fhem.de/fhem/trunk@20853 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jamesgo
2019-12-30 11:15:41 +00:00
parent 8daa1ff825
commit 721ae202c2

View File

@@ -34,6 +34,7 @@
# 05.02.18 GA fix typo overallHeatingSwitchThresholdTemup # 05.02.18 GA fix typo overallHeatingSwitchThresholdTemup
# 19.11.18 GA add support for attribute maxOffTime # 19.11.18 GA add support for attribute maxOffTime
# 05.03.19 GA fix reading maxOffTimeCalculation was set but not used # 05.03.19 GA fix reading maxOffTimeCalculation was set but not used
# 30.12.19 GA fix access to ReadingsVal via $name (reported by stromer-12)
############################################## ##############################################
# $Id$ # $Id$
@@ -901,7 +902,7 @@ PWM_CalcRoom(@)
# ---------------- # ----------------
# check if maxOffTime protection is activated (attribute maxOffTimeIdlePeriod is set) # check if maxOffTime protection is activated (attribute maxOffTimeIdlePeriod is set)
if ($maxOffTimeApply > 0 and ReadingsVal($hash, "maxOffTimeCalculation", "off") eq "on") { if ($maxOffTimeApply > 0 and ReadingsVal($name, "maxOffTimeCalculation", "off") eq "on") {
## wz > 2:00 ## wz > 2:00
if ($maxOffTimeAct >= $maxOffTime) { if ($maxOffTimeAct >= $maxOffTime) {