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
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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
|
- bugfix: 48_BlinkCamera: Corrected handling of prefered network attribute
|
||||||
- change: 70_SolarEdgeAPI: allow smaller intervals for API queries
|
- change: 70_SolarEdgeAPI: allow smaller intervals for API queries
|
||||||
- change: 66_EseraOneWire: switching to recommended firmware version 12029
|
- change: 66_EseraOneWire: switching to recommended firmware version 12029
|
||||||
|
|||||||
@@ -203,8 +203,6 @@ sub I2C_HDC1008_GetTemp ($$)
|
|||||||
|
|
||||||
|
|
||||||
$temperature = sprintf( '%.' . AttrVal($hash->{NAME}, 'roundTemperatureDecimal', 1) . 'f', $temperature );
|
$temperature = sprintf( '%.' . AttrVal($hash->{NAME}, 'roundTemperatureDecimal', 1) . 'f', $temperature );
|
||||||
|
|
||||||
readingsSingleUpdate($hash, "temperature", $temperature, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub I2C_HDC1008_GetHum ($$)
|
sub I2C_HDC1008_GetHum ($$)
|
||||||
|
|||||||
Reference in New Issue
Block a user