mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	tca9548a fix channel selection (#3417)
This commit is contained in:
		| @@ -41,7 +41,7 @@ i2c::ErrorCode TCA9548AComponent::switch_to_channel(uint8_t channel) { | |||||||
|     return i2c::ERROR_OK; |     return i2c::ERROR_OK; | ||||||
|  |  | ||||||
|   uint8_t channel_val = 1 << channel; |   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) { |   if (err == i2c::ERROR_OK) { | ||||||
|     current_channel_ = channel; |     current_channel_ = channel; | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user