ESP32-C3 RC

This commit is contained in:
2025-01-03 03:55:38 -05:00
parent 038788777a
commit 1be2aa9e77

View File

@@ -462,6 +462,7 @@ void sensors_data_prepare(espnow_data_packet_t *send_packet)
void sendData (void) {
// Send data, specify receiver MAC address, pointer to the data being sent, and length of data being sent.
sensors_data_t *buffer;
buffer = malloc(sizeof(sensors_data_t));
buffer->type = 1;
buffer->crc = 0;
buffer->x_axis = 0;