mirror of
https://github.com/esphome/esphome.git
synced 2024-12-24 16:58:07 +01:00
Fix below freezing temperature for Inkbird sensors (#2466)
This commit is contained in:
parent
471b82f727
commit
c3b8c84131
@ -72,7 +72,7 @@ bool InkbirdIbstH1Mini::parse_device(const esp32_ble_tracker::ESPBTDevice &devic
|
||||
auto external_temperature = NAN;
|
||||
|
||||
// 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
|
||||
if (mnf_data.data[2] == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user