mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 15:07:34 +08:00
load_mon: decrease warning threshold for stack check builds
- enabling stack check increases stack usage and will assert if there's any overflow
This commit is contained in:
@@ -55,7 +55,13 @@
|
||||
# error load_mon support requires CONFIG_SCHED_INSTRUMENTATION
|
||||
#endif
|
||||
|
||||
#define STACK_LOW_WARNING_THRESHOLD 300 ///< if free stack space falls below this, print a warning
|
||||
// if free stack space falls below this, print a warning
|
||||
#if defined(CONFIG_ARMV7M_STACKCHECK)
|
||||
static constexpr unsigned STACK_LOW_WARNING_THRESHOLD = 100;
|
||||
#else
|
||||
static constexpr unsigned STACK_LOW_WARNING_THRESHOLD = 300;
|
||||
#endif
|
||||
|
||||
#define FDS_LOW_WARNING_THRESHOLD 3 ///< if free file descriptors fall below this, print a warning
|
||||
|
||||
namespace load_mon
|
||||
|
||||
Reference in New Issue
Block a user