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:
@@ -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()
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
COMPONENT_SRCDIRS := .
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user