mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
docs(wifi): change the magic varible from int to uint32_t on the receiving side
Closes https://github.com/espressif/esp-idf/issues/10912
This commit is contained in:
parent
c432c692fa
commit
6f2f5e8bb7
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user