Skip to content

Commit

Permalink
Update ahWireSlave.cpp and LX790_ESP32.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
ahermann86 committed May 30, 2022
1 parent 075e67b commit 0854003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/LX790_ESP32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ void Task0( void * pvParameters )
Serial.println(F("I2C slave init failed"));
while(1);
}
WireMaster.begin(SDA_PIN_DISPLAY, SCL_PIN_DISPLAY, 100000);
WireMaster.begin(SDA_PIN_DISPLAY, SCL_PIN_DISPLAY, 100000UL);

//crc.setPolynome(0x1021);
//crc.setStartXOR(0xFFFF);
Expand Down
1 change: 1 addition & 0 deletions src/ahWireSlave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ bool TwoWireSlave::begin(int sda, int scl, int address)
i2c_config_t config;
esp_err_t res = ESP_OK;

memset(&config, 0, sizeof config);
config.sda_io_num = gpio_num_t(sda);
config.sda_pullup_en = GPIO_PULLUP_ENABLE;
config.scl_io_num = gpio_num_t(scl);
Expand Down

0 comments on commit 0854003

Please sign in to comment.