mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
wifi: use default esp_event_send handler in WIFI_INIT_CONFIG_DEFAULT
This commit is contained in:
parent
62dbce1e81
commit
01a7efad88
@ -61,8 +61,9 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "freertos/queue.h"
|
#include "freertos/queue.h"
|
||||||
#include "esp_err.h"
|
|
||||||
#include "rom/queue.h"
|
#include "rom/queue.h"
|
||||||
|
#include "esp_err.h"
|
||||||
|
#include "esp_event.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -144,8 +145,8 @@ typedef struct {
|
|||||||
} wifi_init_config_t;
|
} wifi_init_config_t;
|
||||||
|
|
||||||
|
|
||||||
#define WIFI_INIT_CONFIG_DEFAULT(event_handler_) { \
|
#define WIFI_INIT_CONFIG_DEFAULT() { \
|
||||||
.event_handler = (wifi_event_handler_t)event_handler_, \
|
.event_handler = &esp_event_send, \
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user