esp_event: fix post data type inconsistency

This commit is contained in:
Renz Christian Bagaporo 2019-01-29 10:53:26 +08:00
parent 020b295f06
commit f49f5ff35a
2 changed files with 2 additions and 2 deletions

View file

@ -286,7 +286,7 @@ static esp_event_base_instance_t* loop_find_event_base_instance(esp_event_loop_i
// Functions that operate on post instance // Functions that operate on post instance
static esp_err_t post_instance_create(esp_event_base_t event_base, int32_t event_id, void* event_data, int32_t event_data_size, esp_event_post_instance_t* post) static esp_err_t post_instance_create(esp_event_base_t event_base, int32_t event_id, void* event_data, int32_t event_data_size, esp_event_post_instance_t* post)
{ {
void** event_data_copy = NULL; void* event_data_copy = NULL;
// Make persistent copy of event data on heap. // Make persistent copy of event data on heap.
if (event_data != NULL && event_data_size != 0) { if (event_data != NULL && event_data_size != 0) {

View file

@ -90,7 +90,7 @@ typedef struct esp_event_loop_instance {
typedef struct esp_event_post_instance { typedef struct esp_event_post_instance {
esp_event_base_t base; /**< the event base */ esp_event_base_t base; /**< the event base */
int32_t id; /**< the event id */ int32_t id; /**< the event id */
void** data; /**< data associated with the event */ void* data; /**< data associated with the event */
} esp_event_post_instance_t; } esp_event_post_instance_t;
#ifdef __cplusplus #ifdef __cplusplus