mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
Bugfix tca9548a and idf refactor anh (#2612)
Co-authored-by: Andreas Hergert <andreas.hergert@otrs.com>
This commit is contained in:
parent
901ec918b1
commit
c7ef18fbc4
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ i2c::ErrorCode TCA9548AChannel::writev(uint8_t address, i2c::WriteBuffer *buffer
|
||||||
void TCA9548AComponent::setup() {
|
void TCA9548AComponent::setup() {
|
||||||
ESP_LOGCONFIG(TAG, "Setting up TCA9548A...");
|
ESP_LOGCONFIG(TAG, "Setting up TCA9548A...");
|
||||||
uint8_t status = 0;
|
uint8_t status = 0;
|
||||||
if (!this->read_register(0x00, &status, 1)) {
|
if (this->read_register(0x00, &status, 1) != i2c::ERROR_OK) {
|
||||||
ESP_LOGI(TAG, "TCA9548A failed");
|
ESP_LOGI(TAG, "TCA9548A failed");
|
||||||
this->mark_failed();
|
this->mark_failed();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue