Skip to content

Commit

Permalink
Fix LwIP PBUF_RAM configuration (#29325)
Browse files Browse the repository at this point in the history
Missed a case of CHIP_SYSTEM_CONFIG_PACKETBUFFER_LWIP_PBUF_RAM, as
there are no in-tree builds using this configuration. (This used
CHIP_SYSTEM_CONFIG_PACKETBUFFER_LWIP_PBUF_TYPE before #29208.)

Fixes #29282
  • Loading branch information
kpschoedel authored and pull[bot] committed Feb 27, 2024
1 parent eee34ce commit 1135148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/SystemPacketBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class DLL_EXPORT PacketBuffer : private pbuf
/**
* The maximum size buffer an application can allocate with no protocol header reserve.
*/
#if CHIP_SYSTEM_PACKETBUFFER_FROM_LWIP_POOL
#if CHIP_SYSTEM_CONFIG_USE_LWIP
static constexpr uint16_t kMaxSizeWithoutReserve = LWIP_MEM_ALIGN_SIZE(PBUF_POOL_BUFSIZE);
#else
static constexpr uint16_t kMaxSizeWithoutReserve = CHIP_SYSTEM_CONFIG_PACKETBUFFER_CAPACITY_MAX;
Expand Down

0 comments on commit 1135148

Please sign in to comment.