From 1db8c10bfd56257ab118cb2e2668d54b1624412f Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sat, 13 Mar 2021 08:47:16 -0600 Subject: Added some debug logging. --- main/app_main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'main/app_main.c') diff --git a/main/app_main.c b/main/app_main.c index fd462b4..be304cb 100644 --- a/main/app_main.c +++ b/main/app_main.c @@ -71,10 +71,15 @@ static void intercom_thread_entry(void *p) hap_enable_mfi_auth(HAP_MFI_AUTH_HW); /* Enable Hardware MFi authentication (applicable only for MFi variant of SDK) */ - app_wifi_init(); /* Initialize Wi-Fi */ - hap_start(); /* After all the initializations are done, start the HAP core */ + app_wifi_init(); /* Initialize Wi-Fi */ + hap_start(); /* After all the initializations are done, start the HAP core */ + + ESP_LOGI(TAG, "Intercom HAP initialized"); + app_wifi_start(portMAX_DELAY); /* Start Wi-Fi */ + ESP_LOGI(TAG, "Intercom WIFI initialized"); + vTaskDelete(NULL); /* The task ends here. The read/write callbacks will be invoked by the HAP Framework */ } -- cgit v1.2.3