mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 02:23:34 +08:00
Fixed stack overflow in UAVCAN process (#4643)
* Increased uavcan stack size; the old value of 1800 was insufficient * Removed a misleading warning message from uavcan servers initialization
This commit is contained in:
committed by
Lorenz Meier
parent
0902401115
commit
0749b04c9f
@@ -103,7 +103,7 @@ class UavcanNode : public device::CDev
|
||||
*/
|
||||
|
||||
static constexpr unsigned RxQueueLenPerIface = FramePerMSecond * PollTimeoutMs; // At
|
||||
static constexpr unsigned StackSize = 1800;
|
||||
static constexpr unsigned StackSize = 2400;
|
||||
|
||||
public:
|
||||
typedef uavcan_stm32::CanInitHelper<RxQueueLenPerIface> CanInitHelper;
|
||||
|
||||
@@ -923,7 +923,6 @@ void UavcanServers::unpackFwFromROMFS(const char* sd_path, const char* romfs_pat
|
||||
|
||||
DIR* const romfs_dir = opendir(romfs_path);
|
||||
if (!romfs_dir) {
|
||||
warnx("base: couldn't open %s", romfs_path);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user