From bb5eda477c00ea092a765d7ab1ebabb94bc79e37 Mon Sep 17 00:00:00 2001 From: yoda_gh Date: Sat, 1 Aug 2020 18:44:37 +0000 Subject: [PATCH] 52_I2C_HDC1008.pm: Fix "temperature" reading update This was updated twice on each sensor read with strange trigger settings causing problems when used with "event-min-interval". git-svn-id: https://svn.fhem.de/fhem/trunk@22515 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 ++ fhem/FHEM/52_I2C_HDC1008.pm | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index ffc78d540..3d011a8b9 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 52_I2C_HDC1008: "temperature" reading now works correctly with + event-min-interval - bugfix: 48_BlinkCamera: Corrected handling of prefered network attribute - change: 70_SolarEdgeAPI: allow smaller intervals for API queries - change: 66_EseraOneWire: switching to recommended firmware version 12029 diff --git a/fhem/FHEM/52_I2C_HDC1008.pm b/fhem/FHEM/52_I2C_HDC1008.pm index e83df4d5b..bab9c0642 100644 --- a/fhem/FHEM/52_I2C_HDC1008.pm +++ b/fhem/FHEM/52_I2C_HDC1008.pm @@ -203,8 +203,6 @@ sub I2C_HDC1008_GetTemp ($$) $temperature = sprintf( '%.' . AttrVal($hash->{NAME}, 'roundTemperatureDecimal', 1) . 'f', $temperature ); - - readingsSingleUpdate($hash, "temperature", $temperature, 0); } sub I2C_HDC1008_GetHum ($$)