Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_esp_wifi_setting_register_notify_handle_typo…
Browse files Browse the repository at this point in the history
…' into 'master'

wifi_service: correct the typo api to esp_wifi_setting_register_notify_handle

See merge request adf/esp-adf-internal!1267
  • Loading branch information
jason-mao committed Jan 22, 2024
2 parents 21b95e6 + 4f3c0bc commit 331d912
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/wifi_service/include/esp_wifi_setting.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ esp_err_t esp_wifi_setting_register_function(esp_wifi_setting_handle_t handle,
* - ESP_OK
* - ESP_FAIL
*/
esp_err_t esp_wifi_setting_regitster_notify_handle(esp_wifi_setting_handle_t handle, void *on_handle);
esp_err_t esp_wifi_setting_register_notify_handle(esp_wifi_setting_handle_t handle, void *on_handle);

/**
* @brief Call this to notify the `wifi_config_t` to `on_handle`
Expand Down
2 changes: 1 addition & 1 deletion components/wifi_service/src/esp_wifi_setting.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ esp_err_t esp_wifi_setting_register_function(esp_wifi_setting_handle_t handle,
return ESP_OK;
}

esp_err_t esp_wifi_setting_regitster_notify_handle(esp_wifi_setting_handle_t handle, void *on_handle)
esp_err_t esp_wifi_setting_register_notify_handle(esp_wifi_setting_handle_t handle, void *on_handle)
{
AUDIO_NULL_CHECK(TAG, handle, return ESP_ERR_INVALID_ARG);
handle->notify_handle = on_handle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void duer_app_init(void)
initialize_ble_stack();
h = blufi_config_create(NULL);
#endif
esp_wifi_setting_regitster_notify_handle(h, (void *)dueros_speaker->wifi_serv);
esp_wifi_setting_register_notify_handle(h, (void *)dueros_speaker->wifi_serv);
wifi_service_register_setting_handle(dueros_speaker->wifi_serv, h, &reg_idx);
wifi_service_set_sta_info(dueros_speaker->wifi_serv, &sta_cfg);
wifi_service_connect(dueros_speaker->wifi_serv);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static void wifi_server_init(void)

int reg_idx = 0;
wifi_setting_handle = blufi_config_create(NULL);
esp_wifi_setting_regitster_notify_handle(wifi_setting_handle, (void *)wifi_serv);
esp_wifi_setting_register_notify_handle(wifi_setting_handle, (void *)wifi_serv);
wifi_service_register_setting_handle(wifi_serv, wifi_setting_handle, &reg_idx);
wifi_service_set_sta_info(wifi_serv, &sta_cfg);
wifi_service_connect(wifi_serv);
Expand Down
2 changes: 1 addition & 1 deletion examples/dueros/main/dueros_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ void duer_app_init(void)
smart_config_info_t info = SMART_CONFIG_INFO_DEFAULT();
h = smart_config_create(&info);
#endif
esp_wifi_setting_regitster_notify_handle(h, (void *)wifi_serv);
esp_wifi_setting_register_notify_handle(h, (void *)wifi_serv);
wifi_service_register_setting_handle(wifi_serv, h, &reg_idx);
wifi_service_set_sta_info(wifi_serv, &sta_cfg);
wifi_service_connect(wifi_serv);
Expand Down
2 changes: 1 addition & 1 deletion examples/korvo_du1906/main/app_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void app_init(void)
h = blufi_config_create(NULL);
//blufi_set_customized_data(h, "hello world\n", strlen("hello world\n"));
#endif
esp_wifi_setting_regitster_notify_handle(h, (void *)wifi_serv);
esp_wifi_setting_register_notify_handle(h, (void *)wifi_serv);
wifi_service_register_setting_handle(wifi_serv, h, &reg_idx);
wifi_service_set_sta_info(wifi_serv, &sta_cfg);
wifi_service_connect(wifi_serv);
Expand Down
2 changes: 1 addition & 1 deletion examples/protocols/voip/main/voip_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ periph_service_handle_t setup_wifi()

smart_config_info_t info = SMART_CONFIG_INFO_DEFAULT();
esp_wifi_setting_handle_t h = smart_config_create(&info);
esp_wifi_setting_regitster_notify_handle(h, (void *)wifi_serv);
esp_wifi_setting_register_notify_handle(h, (void *)wifi_serv);
wifi_service_register_setting_handle(wifi_serv, h, &reg_idx);

wifi_config_t sta_cfg = {0};
Expand Down

0 comments on commit 331d912

Please sign in to comment.