readingsUpdate changed to ReadingsBulkUpdate

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2106 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert
2012-11-10 16:38:07 +00:00
parent bceb93dbb3
commit d120c56c00

View File

@@ -136,7 +136,7 @@ SolarView_Define($$)
for my $get (@gets) for my $get (@gets)
{ {
readingsUpdate($hash, SolarView_WR($hash, $get, $wr), $hash->{Invalid}); readingsBulkUpdate($hash, SolarView_WR($hash, $get, $wr), $hash->{Invalid});
} }
} }
@@ -237,7 +237,7 @@ SolarView_Update($)
# update Readings # update Readings
for my $get (@gets) for my $get (@gets)
{ {
readingsUpdate($hash, SolarView_WR($hash, $get, $wr), $readings{$get}); readingsBulkUpdate($hash, SolarView_WR($hash, $get, $wr), $readings{$get});
} }
readingsEndUpdate($hash, $init_done); readingsEndUpdate($hash, $init_done);
@@ -312,21 +312,21 @@ SolarView_IsNight($)
for my $wr (@{$hash->{Inverters}}) for my $wr (@{$hash->{Inverters}})
{ {
readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyDay', $wr), 0); readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyDay', $wr), 0);
} }
if ($mday == 1) if ($mday == 1)
{ {
for my $wr (@{$hash->{Inverters}}) for my $wr (@{$hash->{Inverters}})
{ {
readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyMonth', $wr), 0); readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyMonth', $wr), 0);
} }
if ($mon == 0) if ($mon == 0)
{ {
for my $wr (@{$hash->{Inverters}}) for my $wr (@{$hash->{Inverters}})
{ {
readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyYear', $wr), 0); readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyYear', $wr), 0);
} }
} }
} }