Skip to content

Commit

Permalink
Merge branch 'bugfix/espnow_config_channel_v4.4' into 'release/v4.4'
Browse files Browse the repository at this point in the history
esp_wifi: fix espnow example add peer fail when config channel(v4.4)

See merge request espressif/esp-idf!23178
  • Loading branch information
jack0c committed Apr 13, 2023
2 parents 7534dac + 89cede3 commit e5a41d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/wifi/espnow/main/espnow_example_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ static void example_wifi_init(void)
ESP_ERROR_CHECK( esp_wifi_set_storage(WIFI_STORAGE_RAM) );
ESP_ERROR_CHECK( esp_wifi_set_mode(ESPNOW_WIFI_MODE) );
ESP_ERROR_CHECK( esp_wifi_start());
ESP_ERROR_CHECK( esp_wifi_set_channel(CONFIG_ESPNOW_CHANNEL, WIFI_SECOND_CHAN_NONE));

#if CONFIG_ESPNOW_ENABLE_LONG_RANGE
ESP_ERROR_CHECK( esp_wifi_set_protocol(ESPNOW_WIFI_IF, WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N|WIFI_PROTOCOL_LR) );
Expand Down

0 comments on commit e5a41d9

Please sign in to comment.