From 6368154d158f5a020d1616f1c98c698ca00a4372 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Fri, 3 Jan 2025 19:32:51 -0500 Subject: [PATCH] . --- ESP-IDF_Robot_RC/main/common.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ESP-IDF_Robot_RC/main/common.c b/ESP-IDF_Robot_RC/main/common.c index 189358fc1..3bc9a0072 100644 --- a/ESP-IDF_Robot_RC/main/common.c +++ b/ESP-IDF_Robot_RC/main/common.c @@ -12,13 +12,13 @@ typedef struct { uint8_t motor2_rpm_pcm; uint8_t motor3_rpm_pcm; uint8_t motor4_rpm_pcm; -} __attribute__((packed)) sensors_data_t; +} __attribute__((packed)) data_t; typedef struct { - int len; // Length of ESPNOW data to be sent, unit: byte. - uint8_t *buffer; // Buffer; pointer to the data struct. - uint8_t dest_mac[ESP_NOW_ETH_ALEN]; // MAC address of destination device. -} espnow_data_packet_t; + int len; // Length of ESPNOW data to be sent, unit: byte. + uint8_t *buffer; // Buffer; pointer to the data struct. + uint8_t dest_mac[ESP_NOW_ETH_ALEN]; // MAC address of destination device. +} espnow_data_encapsulation_t; /* WiFi should start before using ESPNOW */ static void wifi_init(void)