mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
Fix below freezing temperature for Inkbird sensors (#2466)
This commit is contained in:
parent
471b82f727
commit
c3b8c84131
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ bool InkbirdIbstH1Mini::parse_device(const esp32_ble_tracker::ESPBTDevice &devic
|
||||||
auto external_temperature = NAN;
|
auto external_temperature = NAN;
|
||||||
|
|
||||||
// Read bluetooth data into variable
|
// Read bluetooth data into variable
|
||||||
auto measured_temperature = mnf_data.uuid.get_uuid().uuid.uuid16 / 100.0f;
|
auto measured_temperature = ((int16_t) mnf_data.uuid.get_uuid().uuid.uuid16) / 100.0f;
|
||||||
|
|
||||||
// Set temperature or external_temperature based on which sensor is in use
|
// Set temperature or external_temperature based on which sensor is in use
|
||||||
if (mnf_data.data[2] == 0) {
|
if (mnf_data.data[2] == 0) {
|
||||||
|
|
Loading…
Reference in a new issue