mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-12 04:47:17 +00:00
ESP-IDF Robot ESP NOW
This commit is contained in:
@@ -526,7 +526,7 @@ static esp_err_t espnow_init(void) {
|
||||
send_param->count = CONFIG_ESPNOW_SEND_COUNT;
|
||||
send_param->delay = CONFIG_ESPNOW_SEND_DELAY;
|
||||
send_param->len = CONFIG_ESPNOW_SEND_LEN;
|
||||
send_param->buffer = malloc(message); // malloc(CONFIG_ESPNOW_SEND_LEN); // Data to be sent?
|
||||
send_param->buffer = malloc(sizeof(message)); // malloc(CONFIG_ESPNOW_SEND_LEN); // Data to be sent?
|
||||
if (send_param->buffer == NULL) {
|
||||
ESP_LOGE(TAG, "Malloc send buffer fail");
|
||||
free(send_param);
|
||||
|
Reference in New Issue
Block a user