mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-11 18:20:16 +00:00
ESP32-C3 RC
This commit is contained in:
@@ -473,7 +473,8 @@ void sendData (void) {
|
|||||||
buffer->motor4_rpm_pcm = 0;
|
buffer->motor4_rpm_pcm = 0;
|
||||||
ESP_LOGW(TAG, "x-axis: %x", (uint8_t)buffer->x_axis);
|
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) {
|
if (result != 0) {
|
||||||
ESP_LOGE("ESP-NOW", "Error sending data!");
|
ESP_LOGE("ESP-NOW", "Error sending data!");
|
||||||
deletePeer();
|
deletePeer();
|
||||||
|
Reference in New Issue
Block a user