wifi: use default esp_event_send handler in WIFI_INIT_CONFIG_DEFAULT

This commit is contained in:
Ivan Grokhotkov 2016-09-27 11:33:19 +08:00
parent 62dbce1e81
commit 01a7efad88

View file

@ -61,8 +61,9 @@
#include <stdbool.h>
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
#include "esp_err.h"
#include "rom/queue.h"
#include "esp_err.h"
#include "esp_event.h"
#ifdef __cplusplus
extern "C" {
@ -144,8 +145,8 @@ typedef struct {
} wifi_init_config_t;
#define WIFI_INIT_CONFIG_DEFAULT(event_handler_) { \
.event_handler = (wifi_event_handler_t)event_handler_, \
#define WIFI_INIT_CONFIG_DEFAULT() { \
.event_handler = &esp_event_send, \
};
/**