This commit is contained in:
2025-01-04 22:46:59 -05:00
parent 36b5dd7446
commit 117bf38670
3 changed files with 3 additions and 3 deletions

View File

View File

@@ -1 +1 @@
964df104149120675d58456dbe5eb243dbf5ab35 36b5dd7446194b97e56baf9b858d434fd99b7464

View File

@@ -45,7 +45,7 @@ typedef struct {
static uint8_t receiver_mac[ESP_NOW_ETH_ALEN] = {0xE4, 0xB0, 0x63, 0x17, 0x9E, 0x45}; static uint8_t receiver_mac[ESP_NOW_ETH_ALEN] = {0xE4, 0xB0, 0x63, 0x17, 0x9E, 0x45};
static esp_now_peer_info_t peerInfo; // ESP-NOW pointer holding info about devices (peers) static esp_now_peer_info_t peerInfo; // ESP-NOW pointer holding info about devices (peers)
static sensors_data_t *buf; // Pointer to the struct buffer holding data being sent. static sensors_data_t *buf, buffer; // Pointer to the struct buffer holding data being sent.
static const char *TAG = "Remote Controller"; static const char *TAG = "Remote Controller";
/* WiFi is required to run ESPNOW */ /* WiFi is required to run ESPNOW */
@@ -85,7 +85,7 @@ void deletePeer (void) {
} }
// Function to send data to the receiver // Function to send data to the receiver
void sendData (void) { void sendData (void) {
sensors_data_t buffer; // Declare data struct //sensors_data_t buffer; // Declare data struct
buffer.crc = 0; buffer.crc = 0;
buffer.x_axis = 240; buffer.x_axis = 240;