wifi_provisioning: fix build warnings due to incorrect event handler argument type

This commit is contained in:
Mahavir Jain
2021-01-11 13:24:00 +05:30
parent 533c124280
commit ccf89cd4bf
10 changed files with 19 additions and 15 deletions

View File

@@ -268,7 +268,7 @@ static cJSON* wifi_prov_get_info_json(void)
/* Declare the internal event handler */
static void wifi_prov_mgr_event_handler_internal(void* arg, esp_event_base_t event_base,
int event_id, void* event_data);
int32_t event_id, void* event_data);
static esp_err_t wifi_prov_mgr_start_service(const char *service_name, const char *service_key)
{
@@ -801,7 +801,7 @@ esp_err_t wifi_prov_mgr_event_handler(void *ctx, system_event_t *event)
}
static void wifi_prov_mgr_event_handler_internal(
void* arg, esp_event_base_t event_base, int event_id, void* event_data)
void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data)
{
if (!prov_ctx_lock) {
ESP_LOGE(TAG, "Provisioning manager not initialized");