ESP32-C3 RC

This commit is contained in:
2025-01-03 03:25:53 -05:00
parent e3a7471f2b
commit bba62c91e5
5 changed files with 8 additions and 5 deletions

View File

View File

@@ -1 +1 @@
ref: refs/heads/main
c9763f62dd00c887a1a8fafe388db868a7e44069

View File

@@ -18,7 +18,7 @@ set(HEAD_HASH)
file(READ "/home/abobkov/MyProjects/ESP-Nodes/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/HEAD" HEAD_CONTENTS LIMIT 1024)
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
set(GIT_DIR "/home/abobkov/MyProjects/ESP-Nodes/.git")
set(GIT_DIR "/home/abobkov/esp/esp-idf/.git")
# handle git-worktree
if(EXISTS "${GIT_DIR}/commondir")
file(READ "${GIT_DIR}/commondir" GIT_DIR_NEW LIMIT 1024)

View File

@@ -1 +1 @@
11b706cea2ea5175527c453873d1f47e23c2eb5a
c9763f62dd00c887a1a8fafe388db868a7e44069

View File

@@ -438,8 +438,11 @@ void deletePeer (void) {
/* Prepare ESPNOW data to be sent. */
void sensors_data_prepare(espnow_data_packet_t *send_packet)
{
sensors_data_t *buffer = (sensors_data_t *)send_packet->buffer;
assert(send_packet->len >= sizeof(sensors_data_t));
sensors_data_t *buffer;
malloc(buffer);
send_packet->buffer = buffer;
//sensors_data_t *buffer = (sensors_data_t *)send_packet->buffer;
//assert(send_packet->len >= sizeof(sensors_data_t));
buffer->type = 1;
buffer->crc = 0;