esp_wifi: the antenna parameter of example is not correct

This commit is contained in:
muhaidong 2023-03-27 16:36:24 +08:00
parent c4dffd57c3
commit 2c3ae21591
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
static const char *TAG = "ANTENNA_SWITCH_EXAMPLE";
static wifi_antenna_auto_switch_config_t wifi_three_ant_auto_get_config = {
.ant_num = 3,
.ant_num = ANT_TOTAL_THREE,
.ant_zero = 0,
.ant_one = 1,
.ant_two = 3,

View File

@ -175,7 +175,7 @@ void app_main(void)
ESP_LOGI(TAG, "GPIO: [0].pin = %d, [1].pin = %d",ant_gpio_config.gpio_cfg[0].gpio_num, ant_gpio_config.gpio_cfg[1].gpio_num);
wifi_antenna_auto_switch_config_t wifi_antenna_auto_switch_config;
wifi_antenna_auto_switch_config.ant_num = 3;
wifi_antenna_auto_switch_config.ant_num = ANT_TOTAL_THREE;
wifi_antenna_auto_switch_config.ant_zero = 0;
wifi_antenna_auto_switch_config.ant_one = 1;
wifi_antenna_auto_switch_config.ant_two = 3;