Skip to content

Commit

Permalink
[gen4] network: increase rtlkncp thread stack size
Browse files Browse the repository at this point in the history
  • Loading branch information
avtolstoy committed Jun 28, 2024
1 parent 8ec558e commit 29433d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hal/network/lwip/realtek/rtlncpnetif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ RealtekNcpNetif::~RealtekNcpNetif() {
void RealtekNcpNetif::init() {
registerHandlers();
SPARK_ASSERT(lwip_memp_event_handler_add(mempEventHandler, MEMP_PBUF_POOL, this) == 0);
SPARK_ASSERT(os_thread_create(&thread_, "rltkncp", OS_THREAD_PRIORITY_NETWORK, &RealtekNcpNetif::loop, this, OS_THREAD_STACK_SIZE_DEFAULT_HIGH) == 0);
// XXX: stack size. some rtl SDK calls appear to be stack hungry
SPARK_ASSERT(os_thread_create(&thread_, "rltkncp", OS_THREAD_PRIORITY_NETWORK, &RealtekNcpNetif::loop, this, OS_THREAD_STACK_SIZE_DEFAULT_HIGH * 2) == 0);
}

void RealtekNcpNetif::setWifiManager(particle::WifiNetworkManager* wifiMan) {
Expand Down

0 comments on commit 29433d3

Please sign in to comment.