73_GasCalculator: Bugfix for "Can't use an undefined value as a HASH reference"

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11723 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
sailor-fhem 2016-06-29 04:36:41 +00:00
parent f261639c32
commit 2e285f33d2

View File

@ -731,13 +731,16 @@ sub GasCalculator_Notify($$)
Log3 $GasCalcName, 5, $GasCalcName. " : GasCalculator End_________________________________________________________________________________________________________________________________";
}
### Update list of available readings
### If readings exist already, update list of available readings
if($GasCalcDev->{READINGS})
{
### Copy readings in list of available "gets" and "sets"
%GasCalculator_gets = %{$GasCalcDev->{READINGS}};
%GasCalculator_sets = %{$GasCalcDev->{READINGS}};
### Create Log entries for debugging
Log3 $GasCalcName, 5, $GasCalcName. " : GasCalculator - notify x_sets list: " . join(" ", (keys %GasCalculator_sets));
}
return undef;
}