feat(legacy_driver): add kconfig to skip legacy confilct check

This commit is contained in:
Chen Jichang
2024-12-12 18:13:53 +08:00
parent 466da04867
commit 5e7e352b5a
13 changed files with 93 additions and 3 deletions
@@ -152,6 +152,7 @@ esp_err_t temp_sensor_read_celsius(float *celsius)
return ESP_OK;
}
#if !CONFIG_TEMP_SENSOR_SKIP_LEGACY_CONFLICT_CHECK
/**
* @brief This function will be called during start up, to check that this legacy temp sensor driver is not running along with the new driver
*/
@@ -167,3 +168,4 @@ static void check_legacy_temp_sensor_driver_conflict(void)
}
ESP_EARLY_LOGW(TAG, "legacy driver is deprecated, please migrate to `driver/temperature_sensor.h`");
}
#endif //CONFIG_TEMP_SENSOR_SKIP_LEGACY_CONFLICT_CHECK