Fix below freezing temperature for Inkbird sensors (#2466)

This commit is contained in:
Chris Nussbaum 2021-10-10 03:53:58 -05:00 committed by GitHub
parent 471b82f727
commit c3b8c84131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {