1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 19:32:19 +01:00

Change HDC1080 init instruction failure from error to warning (#2927)

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
George
2021-12-22 13:35:01 +11:00
committed by GitHub
parent 99bd808ebe
commit e152f128c8

View File

@@ -21,7 +21,9 @@ void HDC1080Component::setup() {
}; };
if (!this->write_bytes(HDC1080_CMD_CONFIGURATION, data, 2)) { if (!this->write_bytes(HDC1080_CMD_CONFIGURATION, data, 2)) {
this->mark_failed(); // as instruction is same as powerup defaults (for now), interpret as warning if this fails
ESP_LOGW(TAG, "HDC1080 initial config instruction error");
this->status_set_warning();
return; return;
} }
} }