fix bug in http_task which results in a reboot if flac can't allocate out memory

Signed-off-by: Karl Osterseher <karli_o@gmx.at>
This commit is contained in:
Karl Osterseher
2025-01-18 09:30:46 +01:00
Unverified
parent 4e73d36037
commit d9afc3038b
10 changed files with 54 additions and 4041 deletions

View File

@@ -1,11 +1,7 @@
if(CONFIG_SNAPCLIENT_ENABLE_ETHERNET)
idf_component_register(SRCS "eth_interface.c"
INCLUDE_DIRS "include")
INCLUDE_DIRS "include"
PRIV_REQUIRES driver esp_eth esp_netif)
else()
idf_component_register()
endif()

View File

@@ -1 +0,0 @@
COMPONENT_SRCDIRS := .

View File

@@ -8,7 +8,13 @@
*/
#include <stdio.h>
#include <string.h>
#include "driver/gpio.h"
#if CONFIG_ETH_USE_SPI_ETHERNET
#include "driver/spi_master.h"
#endif // CONFIG_ETH_USE_SPI_ETHERNET
#include "esp_eth.h"
#include "esp_event.h"
#include "esp_log.h"
@@ -16,10 +22,7 @@
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "freertos/task.h"
#include "sdkconfig.h"
#if CONFIG_ETH_USE_SPI_ETHERNET
#include "driver/spi_master.h"
#endif // CONFIG_ETH_USE_SPI_ETHERNET
// #include "sdkconfig.h"
static const char *TAG = "ETH";