mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
73_GasCalculator: Bugfix for "Can't use an undefined value as a HASH reference"
git-svn-id: https://svn.fhem.de/fhem/trunk@11723 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
56a8ffeda9
commit
b02005a3f9
@ -731,13 +731,16 @@ sub GasCalculator_Notify($$)
|
||||
Log3 $GasCalcName, 5, $GasCalcName. " : GasCalculator End_________________________________________________________________________________________________________________________________";
|
||||
}
|
||||
|
||||
### Update list of available readings
|
||||
%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));
|
||||
### 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user