diff --git a/examples/wifi/espnow/main/espnow_example_main.c b/examples/wifi/espnow/main/espnow_example_main.c index bb747c7726..b7e8337199 100644 --- a/examples/wifi/espnow/main/espnow_example_main.c +++ b/examples/wifi/espnow/main/espnow_example_main.c @@ -117,7 +117,7 @@ static void example_espnow_recv_cb(const esp_now_recv_info_t *recv_info, const u } /* Parse received ESPNOW data. */ -int example_espnow_data_parse(uint8_t *data, uint16_t data_len, uint8_t *state, uint16_t *seq, int *magic) +int example_espnow_data_parse(uint8_t *data, uint16_t data_len, uint8_t *state, uint16_t *seq, uint32_t *magic) { example_espnow_data_t *buf = (example_espnow_data_t *)data; uint16_t crc, crc_cal = 0; @@ -163,7 +163,7 @@ static void example_espnow_task(void *pvParameter) example_espnow_event_t evt; uint8_t recv_state = 0; uint16_t recv_seq = 0; - int recv_magic = 0; + uint32_t recv_magic = 0; bool is_broadcast = false; int ret;