mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 14:13:51 +00:00
I2c raw cmds with multiplexer (#1817)
Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net>
This commit is contained in:
@@ -10,8 +10,8 @@ void I2CSSD1306::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Setting up I2C SSD1306...");
|
||||
this->init_reset_();
|
||||
|
||||
this->parent_->raw_begin_transmission(this->address_);
|
||||
if (!this->parent_->raw_end_transmission(this->address_)) {
|
||||
this->raw_begin_transmission();
|
||||
if (!this->raw_end_transmission()) {
|
||||
this->error_code_ = COMMUNICATION_FAILED;
|
||||
this->mark_failed();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user