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 9bc6c084d..ea5a3f36a 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 @@ -2868488f2039c739bb6555b31b8a37f1fc785657 +988fdc38c2f9f5019edc9da7ecb98b3d200d4e76 diff --git a/ESP-IDF_Robot_RC/main/espnow_example_main.c b/ESP-IDF_Robot_RC/main/espnow_example_main.c index 9da7b9c32..be6f79741 100755 --- a/ESP-IDF_Robot_RC/main/espnow_example_main.c +++ b/ESP-IDF_Robot_RC/main/espnow_example_main.c @@ -110,8 +110,8 @@ void sendData (void) { ESP_LOGI(TAG, "pcm 4: 0x%04X", (uint8_t)buffer.motor4_rpm_pcm); //uint8_t result = esp_now_send(receiver_mac, &flagToSend, sizeof(flagToSend)); - //uint8_t result = esp_now_send(receiver_mac, &buffer, sizeof(buffer)); - uint8_t result = esp_now_send(receiver_mac, (sensors_data_t *)&buffer, sizeof(buffer)); + uint8_t result = esp_now_send(receiver_mac, &buffer, sizeof(buffer)); + //uint8_t result = esp_now_send(receiver_mac, (sensors_data_t *)&buffer, sizeof(buffer)); if (result != 0) { ESP_LOGE("ESP-NOW", "Error sending data! Error code: 0x%04X", result); deletePeer();