Skip to content

Commit

Permalink
Increase stack space for ts.process in serial.cpp
Browse files Browse the repository at this point in the history
Depending on the amount of data nodes, calling ?rec caused a stack overflow.
Larger stack memory solves the issue, for further improvement see also #103.
  • Loading branch information
martinjaeger committed Aug 18, 2020
1 parent b110918 commit 5b024dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ext/serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ void serial_thread()
}
}

K_THREAD_DEFINE(serial_thread_id, 1024, serial_thread, NULL, NULL, NULL, 6, 0, 1000);
K_THREAD_DEFINE(serial_thread_id, 1280, serial_thread, NULL, NULL, NULL, 6, 0, 1000);

#endif /* CONFIG_THINGSET_SERIAL */

0 comments on commit 5b024dc

Please sign in to comment.