1
0
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:
Maurice Makaay
2021-06-01 00:36:25 +02:00
committed by GitHub
parent 9a2cd71571
commit 56974153f1
5 changed files with 41 additions and 15 deletions

View File

@@ -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;