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:
Pavel Kirienko
2016-05-26 20:00:46 +02:00
committed by Lorenz Meier
parent 0902401115
commit 0749b04c9f
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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;
-1
View File
@@ -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;
}