Compare commits

...

1 Commits

2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ typedef struct {
* - ESP_OK : success * - ESP_OK : success
* - other : failed * - 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 * @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); 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) { if (config == NULL) {
ESP_LOGE(TAG, "Invalid configuration"); ESP_LOGE(TAG, "Invalid configuration");