mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
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.
This commit is contained in:
parent
f46b3d15cd
commit
b5df50893b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue