forked from espressif/esp-idf
Removed all other instances of call to esp_wifi_init(), because every time this is called it will override its previously set default event handler and hence cause numerous warnings. Also, call nvs_flash_init() only once, that is before calling esp_wifi_init() in main function