fix(esp_phy): Make config argument const for esp_phy_set_ant_gpio()

This commit is contained in:
2025-10-14 17:36:25 +02:00
parent fdb3a300b3
commit a4f4040ef0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ typedef struct {
* - ESP_OK : success
* - other : failed
*/
esp_err_t esp_phy_set_ant_gpio(esp_phy_ant_gpio_config_t *config);
esp_err_t esp_phy_set_ant_gpio(const esp_phy_ant_gpio_config_t *config);
/**
* @brief Get current antenna GPIO configuration
+1 -1
View File
@@ -177,7 +177,7 @@ static void phy_ant_set_gpio_output(uint32_t io_num)
gpio_config(&io_conf);
}
esp_err_t esp_phy_set_ant_gpio(esp_phy_ant_gpio_config_t *config)
esp_err_t esp_phy_set_ant_gpio(const esp_phy_ant_gpio_config_t *config)
{
if (config == NULL) {
ESP_LOGE(TAG, "Invalid configuration");