Skip to content

Commit

Permalink
Added basic idf.py v5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperChamp234 committed Jan 30, 2024
1 parent d73559b commit 6b3dc21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.22)

set(srcs "src/i2cdev.c" "src/adc.c" "src/bar_graph.c" "src/switches.c" "src/lsa.c" "src/motor_driver.c" "src/mpu6050.c" "src/servo.c" "src/utils.c")
set(include_dirs include)

Expand Down
4 changes: 2 additions & 2 deletions src/i2cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static esp_err_t i2c_setup_port(const i2c_dev_t *dev)
esp_err_t res;
if (!cfg_equal(&dev->cfg, &states[dev->port].config))
{
ESP_LOGD(TAG, "Reconfiguring I2C driver on port %d", dev->port);
ESP_LOGD(TAG, "Reconfiguring I2C driver on port %d", (int)dev->port);
i2c_config_t temp;
memcpy(&temp, &dev->cfg, sizeof(i2c_config_t));
temp.mode = I2C_MODE_MASTER;
Expand All @@ -222,7 +222,7 @@ static esp_err_t i2c_setup_port(const i2c_dev_t *dev)
states[dev->port].installed = true;

memcpy(&states[dev->port].config, &temp, sizeof(i2c_config_t));
ESP_LOGD(TAG, "I2C driver successfully reconfigured on port %d", dev->port);
ESP_LOGD(TAG, "I2C driver successfully reconfigured on port %d", (int)dev->port);
}
#if HELPER_TARGET_IS_ESP32
int t;
Expand Down

0 comments on commit 6b3dc21

Please sign in to comment.