diff --git a/ESP-IDF_Robot_RC/build/.ninja_lock b/ESP-IDF_Robot_RC/build/.ninja_lock new file mode 100644 index 000000000..e69de29bb diff --git a/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref b/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref index 1012eb4a9..cc7be3cf5 100644 --- a/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref +++ b/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref @@ -1 +1 @@ -964df104149120675d58456dbe5eb243dbf5ab35 +36b5dd7446194b97e56baf9b858d434fd99b7464 diff --git a/ESP-IDF_Robot_RC/main/espnow_example_main.c b/ESP-IDF_Robot_RC/main/espnow_example_main.c index 9d7946c97..891f7958e 100755 --- a/ESP-IDF_Robot_RC/main/espnow_example_main.c +++ b/ESP-IDF_Robot_RC/main/espnow_example_main.c @@ -45,7 +45,7 @@ typedef struct { 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 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"; /* WiFi is required to run ESPNOW */ @@ -85,7 +85,7 @@ void deletePeer (void) { } // Function to send data to the receiver void sendData (void) { - sensors_data_t buffer; // Declare data struct + //sensors_data_t buffer; // Declare data struct buffer.crc = 0; buffer.x_axis = 240;