2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-22 09:49:50 +00:00

readingsUpdate changed to ReadingsBulkUpdate

git-svn-id: https://svn.fhem.de/fhem/trunk@2106 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2012-11-10 16:38:07 +00:00
parent df342bb9b4
commit f841a96cb6

View File

@ -136,7 +136,7 @@ SolarView_Define($$)
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
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);
@ -312,21 +312,21 @@ SolarView_IsNight($)
for my $wr (@{$hash->{Inverters}})
{
readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyDay', $wr), 0);
readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyDay', $wr), 0);
}
if ($mday == 1)
{
for my $wr (@{$hash->{Inverters}})
{
readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyMonth', $wr), 0);
readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyMonth', $wr), 0);
}
if ($mon == 0)
{
for my $wr (@{$hash->{Inverters}})
{
readingsUpdate($hash, SolarView_WR($hash, 'totalEnergyYear', $wr), 0);
readingsBulkUpdate($hash, SolarView_WR($hash, 'totalEnergyYear', $wr), 0);
}
}
}