mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(legacy_driver): add kconfig to skip legacy confilct check
This commit is contained in:
@@ -1705,6 +1705,7 @@ int i2c_slave_read_buffer(i2c_port_t i2c_num, uint8_t *data, size_t max_size, Ti
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !CONFIG_I2C_SKIP_LEGACY_CONFLICT_CHECK
|
||||
/**
|
||||
* @brief This function will be called during start up, to check that this legacy i2c driver is not running along with the new I2C driver
|
||||
*/
|
||||
@@ -1720,3 +1721,4 @@ static void check_i2c_driver_conflict(void)
|
||||
}
|
||||
ESP_EARLY_LOGW(I2C_TAG, "This driver is an old driver, please migrate your application code to adapt `driver/i2c_master.h`");
|
||||
}
|
||||
#endif //CONFIG_I2C_SKIP_LEGACY_CONFLICT_CHECK
|
||||
|
||||
Reference in New Issue
Block a user