ESP-IDF Robot ESP NOW

This commit is contained in:
2024-12-25 02:23:57 -05:00
parent 6027a49f3b
commit d7fec63fba
3 changed files with 2 additions and 2 deletions

View File

View File

@@ -1 +1 @@
e68c2054ff8896c216b5119b8b25e638ce88c291 784473c8e645e731ad29bf04898b763334cd1884

View File

@@ -336,7 +336,7 @@ void espnow_data_prepare(espnow_send_param_t *send_param) {
/* Fill all remaining bytes after the data with random values */ /* Fill all remaining bytes after the data with random values */
buf->payload[0] = (uint8_t)6; buf->payload[0] = (uint8_t)6;
//esp_fill_random(buf->payload, send_param->len - sizeof(espnow_data_t)); //esp_fill_random(buf->payload, send_param->len - sizeof(espnow_data_t));
ESP_LOGW(TAG, "Filled payload array."); ESP_LOGW(TAG, "Filled payload array, %x", buf->payload[0]);
buf->crc = esp_crc16_le(UINT16_MAX, (uint8_t const *)buf, send_param->len); buf->crc = esp_crc16_le(UINT16_MAX, (uint8_t const *)buf, send_param->len);
} }