mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
feat(legacy_driver): add kconfig to skip legacy confilct check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user