2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 10:46:03 +00:00

73_km200.pm: Bugfix for uninitialized values

git-svn-id: https://svn.fhem.de/fhem/trunk@11943 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
sailor-fhem 2016-08-10 19:12:24 +00:00
parent 2f9c56a2f3
commit 5f83b03653

View File

@ -333,12 +333,6 @@ sub km200_DbLog_splitFn($$)
Log3 $name, 5, $name. " : km200_DbLog_splitFn - Content of argument[0] : " . $argument[0];
Log3 $name, 5, $name. " : km200_DbLog_splitFn - Content of argument[1] : " . $argument[1];
Log3 $name, 5, $name. " : km200_DbLog_splitFn - Content of argument[2] : " . $argument[2];
Log3 $name, 5, $name. " : km200_DbLog_splitFn - Content of ServiceDbLogSplitHash - id : " . $hash->{temp}{ServiceDbLogSplitHash}{id};
Log3 $name, 5, $name. " : km200_DbLog_splitFn - Content of ServiceDbLogSplitHash - value : " . $hash->{temp}{ServiceDbLogSplitHash}{value};
Log3 $name, 5, $name. " : km200_DbLog_splitFn - Content of ServiceDbLogSplitHash - unit : " . $hash->{temp}{ServiceDbLogSplitHash}{unitOfMeasure};
### If the service to be changed is identical to the one where the unit received from
if ($argument[0] = $hash->{temp}{ServiceDbLogSplitHash}{id})
@ -347,11 +341,7 @@ sub km200_DbLog_splitFn($$)
$reading = $argument[0];
$value = $argument[1];
$unit = $hash->{temp}{ServiceDbLogSplitHash}{unitOfMeasure};
Log3 $name, 5, $name. " : km200_DbLog_splitFn - unitOfMeasure has been amended with : " . $hash->{temp}{ServiceDbLogSplitHash}{unitOfMeasure};
}
### Delete temporary json-hash for DbLog-Split
$hash->{temp}{ServiceDbLogSplitHash} = ();