mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
tca9548a fix channel selection (#3417)
This commit is contained in:
parent
d685fdf54a
commit
86b52df839
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue