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
+2 -2
View File
@@ -9,9 +9,9 @@ static const char *TAG = "mcp4725";
void MCP4725::setup() {
ESP_LOGCONFIG(TAG, "Setting up MCP4725 (0x%02X)...", this->address_);
this->parent_->raw_begin_transmission(this->address_);
this->raw_begin_transmission();
if (!this->parent_->raw_end_transmission(this->address_)) {
if (!this->raw_end_transmission()) {
this->error_code_ = COMMUNICATION_FAILED;
this->mark_failed();