Skip to content

Commit b333143

Browse files
committed
fix(icm42670): restore backward compatible public api
1 parent c2ca31c commit b333143

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/sensors/icm42670/icm42670.c

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

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

components/sensors/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)