diff --git a/components/esp_phy/include/esp_phy.h b/components/esp_phy/include/esp_phy.h index 93b35468962..ce4a388f331 100644 --- a/components/esp_phy/include/esp_phy.h +++ b/components/esp_phy/include/esp_phy.h @@ -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 diff --git a/components/esp_phy/src/phy_common.c b/components/esp_phy/src/phy_common.c index 7d27470dcc2..f6791ad01d7 100644 --- a/components/esp_phy/src/phy_common.c +++ b/components/esp_phy/src/phy_common.c @@ -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");