From 1c8b6d53fa26767ffb63a4a84ca85cc8850f689c Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Fri, 3 Jan 2025 03:53:43 -0500 Subject: [PATCH] ESP32-C3 RC --- ESP-IDF_Robot_RC/main/espnow_example_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ESP-IDF_Robot_RC/main/espnow_example_main.c b/ESP-IDF_Robot_RC/main/espnow_example_main.c index 035313e9e..e235462d7 100755 --- a/ESP-IDF_Robot_RC/main/espnow_example_main.c +++ b/ESP-IDF_Robot_RC/main/espnow_example_main.c @@ -473,7 +473,8 @@ void sendData (void) { buffer->motor4_rpm_pcm = 0; ESP_LOGW(TAG, "x-axis: %x", (uint8_t)buffer->x_axis); - uint8_t result = esp_now_send(receiver_mac, &flagToSend, sizeof(flagToSend)); + //uint8_t result = esp_now_send(receiver_mac, &flagToSend, sizeof(flagToSend)); + uint8_t result = esp_now_send(receiver_mac, &buffer, sizeof(buffer)); if (result != 0) { ESP_LOGE("ESP-NOW", "Error sending data!"); deletePeer();