From 280a2474b4ea0d97f5f47efc4de14d254dc26fb5 Mon Sep 17 00:00:00 2001 From: mgehre <> Date: Thu, 10 Jan 2013 22:57:26 +0000 Subject: [PATCH] MAX: fixed small bug git-svn-id: https://svn.fhem.de/fhem/trunk@2472 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_MAX.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/10_MAX.pm b/fhem/FHEM/10_MAX.pm index c59a08e39..ef7a8fa3d 100755 --- a/fhem/FHEM/10_MAX.pm +++ b/fhem/FHEM/10_MAX.pm @@ -160,7 +160,11 @@ MAX_ReadingsVal(@) #Error: invalid value Log 2, "MAX: Invalid value $val for READING $name. Forcing to $readingDef{$name}[2]"; $val = $readingDef{$name}[2]; - readingsSingleUpdate($hash,$name,$val,0); + if(exists($hash->{".updateTimestamp"})) { + readingsBulkUpdate($hash,$name,$val); + } else { + readingsSingleUpdate($hash,$name,$val,0); + } } return $val; }