lwip: ooseq_max_bytes() - set a practical target memory size.
This commit is contained in:
parent
730a0f40c7
commit
893f715852
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ size_t ooseq_max_bytes(size_t n)
|
||||||
{
|
{
|
||||||
#if COPY_PP_RX_PBUFS
|
#if COPY_PP_RX_PBUFS
|
||||||
size_t free = xPortGetFreeHeapSize();
|
size_t free = xPortGetFreeHeapSize();
|
||||||
ssize_t target = ((ssize_t)free - 30000) + n;
|
ssize_t target = ((ssize_t)free - 8000) + n;
|
||||||
|
|
||||||
if (target < 0) {
|
if (target < 0) {
|
||||||
target = 0;
|
target = 0;
|
||||||
|
|
Loading…
Reference in a new issue