This commit is contained in:
2024-12-25 02:46:15 -05:00
parent 2422173ec2
commit 9b92d3cdc6
13 changed files with 588 additions and 584 deletions

View File

@@ -161,7 +161,7 @@ void example_espnow_data_prepare(example_espnow_send_param_t *send_param)
//memcpy(buf->payload[0], (uint8_t)12, send_param->len - sizeof(example_espnow_data_t));
//memcpy(buf->payload[0], 12, send_param->len - sizeof(example_espnow_data_t));
buf->payload[0] = 5;
ESP_LOGW(TAG, "Payload: ", buf);
ESP_LOGW(TAG, "Payload: %x", (unsigned int)buf->payload);
ESP_LOGW(TAG, "Saved value: %x", buf->payload[0]);
buf->crc = esp_crc16_le(UINT16_MAX, (uint8_t const *)buf, send_param->len);
}