ESP-IDF Robot ESP NOW

This commit is contained in:
2024-12-25 02:21:05 -05:00
parent ca3e1515a9
commit 6e3520438a
3 changed files with 2 additions and 2 deletions

View File

@@ -313,7 +313,7 @@ int example_espnow_data_parse(uint8_t *data, uint16_t data_len, uint8_t *state,
crc_cal = esp_crc16_le(UINT16_MAX, (uint8_t const *)buf, data_len);
// Display received data.
ESP_LOGW(TAG, "Received data size: %d", data_len);
ESP_LOGW(TAG, "Received payload data is: %x", buf->payload[0]);
ESP_LOGW(TAG, "Received payload data is: %x", buf->payload);
if (crc_cal == crc) {
return buf->type;