Update inkbird_ibsth1_mini.cpp (#3664)

This commit is contained in:
Samuel Sieb 2022-07-31 18:08:19 -07:00 committed by Jesse Hills
parent df73170e5a
commit 311980e0e4
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -55,7 +55,7 @@ bool InkbirdIbstH1Mini::parse_device(const esp32_ble_tracker::ESPBTDevice &devic
ESP_LOGVV(TAG, "parse_device(): manufacturer data element length is expected to be of length 7"); ESP_LOGVV(TAG, "parse_device(): manufacturer data element length is expected to be of length 7");
return false; return false;
} }
if (mnf_data.data[6] != 8) { if ((mnf_data.data[6] != 8) && (mnf_data.data[6] != 6)) {
ESP_LOGVV(TAG, "parse_device(): unexpected data"); ESP_LOGVV(TAG, "parse_device(): unexpected data");
return false; return false;
} }