docs(wifi): change the magic varible from int to uint32_t on the receiving side

Closes https://github.com/espressif/esp-idf/issues/10912
pull/13550/head
zhangyanjiao 2024-03-26 16:43:15 +08:00
rodzic 52137a2b55
commit 819244b521
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;