mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-11 12:50:16 +00:00
ESP32-C3 RC
This commit is contained in:
@@ -56,7 +56,7 @@ static uint8_t flagToSend = 0;
|
||||
static uint8_t broadcast_mac[ESP_NOW_ETH_ALEN] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
|
||||
static uint8_t robot_mac[ESP_NOW_ETH_ALEN] = {0xE4, 0xB0, 0x63, 0x17, 0x9E, 0x45}; // MAC address of Robot
|
||||
static uint8_t rc_mac[ESP_NOW_ETH_ALEN] = {0x34, 0xB7, 0xDA, 0xF9, 0x33, 0x8D}; // MAC address of Remote Control
|
||||
static espnow_data_packet_t *buf;
|
||||
static sensors_data_t *buf;
|
||||
|
||||
static void rc_send_data_task2 (void *pvParameter);
|
||||
|
||||
@@ -540,7 +540,7 @@ static esp_err_t rc_espnow_init (void) {
|
||||
void onDataReceived (uint8_t *mac_addr, uint8_t *data, uint8_t data_len) {
|
||||
|
||||
//memcpy(buf, data, data_len);
|
||||
buf = &data;
|
||||
buf = (sensors_data_t*)data;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user