Skip to content

Commit ac38f34

Browse files
authored
Merge pull request #5 from esp-idf-lib/tidy
chore: remove macros NOT defined in esp_idf_helpers.h
2 parents a50eadd + 4853b23 commit ac38f34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

i2cdev_legacy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ static esp_err_t i2c_setup_port(i2c_dev_t *dev)
499499
vTaskDelay(1);
500500

501501
// Target-specific driver installation/configuration sequence
502-
#if HELPER_TARGET_IS_ESP32 || HELPER_TARGET_IS_ESP32S2 || HELPER_TARGET_IS_ESP32S3 || HELPER_TARGET_IS_ESP32C3 || HELPER_TARGET_IS_ESP32C6
502+
#if HELPER_TARGET_IS_ESP32
503503
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)
504504
ESP_LOGD(TAG, "Using IDF >= 5.1.0 driver install order for ESP32 family");
505505
err = i2c_driver_install(dev->port, legacy_cfg.mode, 0, 0, 0);
@@ -559,7 +559,7 @@ static esp_err_t i2c_setup_port(i2c_dev_t *dev)
559559
}
560560

561561
// Part 2: Timeout Configuration (ESP32 family specific hardware timeout)
562-
#if HELPER_TARGET_IS_ESP32 || HELPER_TARGET_IS_ESP32S2 || HELPER_TARGET_IS_ESP32S3 || HELPER_TARGET_IS_ESP32C3 || HELPER_TARGET_IS_ESP32C6
562+
#if HELPER_TARGET_IS_ESP32
563563
int current_timeout_hw;
564564
err = i2c_get_timeout(dev->port, &current_timeout_hw);
565565
if (err != ESP_OK)

0 commit comments

Comments
 (0)