mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-12 12:07:02 +00:00
ESP-IDF Robot ESP NOW
This commit is contained in:
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
0
ESP-IDF_Robot/build/.ninja_lock
Normal file
@@ -1 +1 @@
|
|||||||
e254b855100ecfeec36b02c0161ecd6cede9ef1f
|
1b42d4262d3b06e1ccd722d3c4d05d23ecf54ce8
|
||||||
|
@@ -282,7 +282,7 @@ static void espnow_recv_cb (const esp_now_recv_info_t *recv_info, const uint8_t
|
|||||||
memcpy(recv_cb->mac_addr, mac_addr, ESP_NOW_ETH_ALEN);
|
memcpy(recv_cb->mac_addr, mac_addr, ESP_NOW_ETH_ALEN);
|
||||||
recv_cb->data = malloc(len);
|
recv_cb->data = malloc(len);
|
||||||
// Display payload received.
|
// Display payload received.
|
||||||
ESP_LOGW(TAG, "Received payload: %u", (unsigned int)recv_cb->data);
|
ESP_LOGW(TAG, "Received payload: %x", (unsigned int)recv_cb->data);
|
||||||
if (recv_cb->data == NULL) {
|
if (recv_cb->data == NULL) {
|
||||||
ESP_LOGE(TAG, "Malloc receive data fail");
|
ESP_LOGE(TAG, "Malloc receive data fail");
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user