mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-12 03:43:28 +00:00
ESP32-C3 RC
This commit is contained in:
@@ -800,7 +800,7 @@ static void display_chip_temperature () {
|
|||||||
void onDataReceived (uint8_t *mac_addr, uint8_t *data, uint8_t data_len) {
|
void onDataReceived (uint8_t *mac_addr, uint8_t *data, uint8_t data_len) {
|
||||||
|
|
||||||
//memcpy(buf, data, data_len);
|
//memcpy(buf, data, data_len);
|
||||||
memcpy(&buf, data, sizeof(buf));
|
//memcpy(&buf, data, sizeof(buf));
|
||||||
//buf = (sensors_data_t*)data;
|
//buf = (sensors_data_t*)data;
|
||||||
/*ESP_LOGW(TAG, "Data was received");
|
/*ESP_LOGW(TAG, "Data was received");
|
||||||
ESP_LOGI(TAG, "x-axis: 0x%04X", buf->x_axis);
|
ESP_LOGI(TAG, "x-axis: 0x%04X", buf->x_axis);
|
||||||
|
Reference in New Issue
Block a user