From 8157c24977f00d3780af9302348d761f8f0a8e20 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 6 Sep 2021 14:46:19 +1000 Subject: [PATCH] AP_HAL: added stack logging --- libraries/AP_HAL/Util.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL/Util.h b/libraries/AP_HAL/Util.h index 9a95217b8d..53e0d98768 100644 --- a/libraries/AP_HAL/Util.h +++ b/libraries/AP_HAL/Util.h @@ -188,6 +188,9 @@ public: // generate Random values, will block until enough entropy is available virtual bool get_true_random_vals(uint8_t* data, size_t size, uint32_t timeout_us) { return false; } + // log info on stack usage + virtual void log_stack_info(void) {} + protected: // we start soft_armed false, so that actuators don't send any // values until the vehicle code has fully started