UncleRus / esp-idf-lib

Component library for ESP32-xx and ESP8266
https://esp-idf-lib.readthedocs.io/en/latest/
1.43k stars 441 forks source link

A I2C Bug #330

Closed lpitt10 closed 2 years ago

lpitt10 commented 2 years ago

The issue

There is "definition i2c_dev_t" in esp-idf now, and there is "definition i2c_dev_t" too in esp-idf-lib now. so i2c don't work.

Which SDK are you using?

esp-idf

Which version of SDK are you using?

V4.4.1

Which build target have you used?

Component causing the issue

i2c don't work

Anything in the logs that might be useful for us?

sed -i "s/i2c_dev_t/i2c_device_t/g" `grep i2c_dev_t -rl ./esp-idf-lib`

Additional information or context

No response

Confirmation

UncleRus commented 2 years ago

The definition of i2c_dev_t has been in ESP-IDF for a long time. Since it is used in low-level SoC definitions, and these low-level headers must be included for conflict, this is not a problem.