Skip to content

Commit 5f196ca

Browse files
committed
fix(icm42670): restore backward compatible public api
1 parent 662e300 commit 5f196ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/icm42670/icm42670.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static const char *TAG = "ICM42670";
7979
* Public API functions
8080
*******************************************************************************/
8181

82-
esp_err_t icm42670_create_i2c(i2c_master_bus_handle_t i2c_bus, const uint8_t dev_addr, icm42670_handle_t *handle_ret)
82+
esp_err_t icm42670_create(i2c_master_bus_handle_t i2c_bus, const uint8_t dev_addr, icm42670_handle_t *handle_ret)
8383
{
8484
esp_err_t ret = ESP_OK;
8585

components/icm42670/include/icm42670.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ typedef void *icm42670_handle_t;
135135
* - ESP_ERR_NOT_FOUND Sensor not found on the I2C bus
136136
* - Others Error from underlying I2C driver
137137
*/
138-
esp_err_t icm42670_create_i2c(i2c_master_bus_handle_t i2c_bus, const uint8_t dev_addr, icm42670_handle_t *handle_ret);
138+
esp_err_t icm42670_create(i2c_master_bus_handle_t i2c_bus, const uint8_t dev_addr, icm42670_handle_t *handle_ret);
139139

140140
/**
141141
* @brief Create and init sensor object using SPI interface

0 commit comments

Comments
 (0)