From b5df50893bbb0adea00617e3d41a2fb45866fa1c Mon Sep 17 00:00:00 2001 From: EmbeddedDevver Date: Wed, 16 Sep 2020 12:41:29 +0200 Subject: [PATCH] Update max31855.cpp (#1273) line 47: mem It's valid to have mem value of zero (0) when the temperature of the IC and the k-probe equals exactly zero degrees. --- esphome/components/max31855/max31855.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/max31855/max31855.cpp b/esphome/components/max31855/max31855.cpp index 88f9e836f9..7a0dc2427c 100644 --- a/esphome/components/max31855/max31855.cpp +++ b/esphome/components/max31855/max31855.cpp @@ -44,7 +44,7 @@ void MAX31855Sensor::read_data_() { const uint32_t mem = data[0] << 24 | data[1] << 16 | data[2] << 8 | data[3] << 0; // Verify we got data - if (mem != 0 && mem != 0xFFFFFFFF) { + if (mem != 0xFFFFFFFF) { this->status_clear_error(); } else { ESP_LOGE(TAG, "No data received from MAX31855 (0x%08X). Check wiring!", mem);