From 86b52df839075e956f307c2666ae5719a992efbc Mon Sep 17 00:00:00 2001 From: Martin <25747549+martgras@users.noreply.github.com> Date: Tue, 10 May 2022 07:17:55 +0200 Subject: [PATCH] tca9548a fix channel selection (#3417) --- esphome/components/tca9548a/tca9548a.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/tca9548a/tca9548a.cpp b/esphome/components/tca9548a/tca9548a.cpp index de0d21b968..caa3dd0655 100644 --- a/esphome/components/tca9548a/tca9548a.cpp +++ b/esphome/components/tca9548a/tca9548a.cpp @@ -41,7 +41,7 @@ i2c::ErrorCode TCA9548AComponent::switch_to_channel(uint8_t channel) { return i2c::ERROR_OK; uint8_t channel_val = 1 << channel; - auto err = this->write_register(0x70, &channel_val, 1); + auto err = this->write(&channel_val, 1); if (err == i2c::ERROR_OK) { current_channel_ = channel; }