From 0c69ebc50e08dd829a32618c223c9d4d14bc3967 Mon Sep 17 00:00:00 2001 From: bugobliterator <siddharthbharatpurohit@gmail.com> Date: Wed, 3 Nov 2021 22:16:59 +0530 Subject: [PATCH] AP_HAL: update last_crash_dump api --- libraries/AP_HAL/Util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL/Util.h b/libraries/AP_HAL/Util.h index efb32f7cd8..19a79a9f6f 100644 --- a/libraries/AP_HAL/Util.h +++ b/libraries/AP_HAL/Util.h @@ -192,7 +192,8 @@ public: // log info on stack usage virtual void log_stack_info(void) {} - virtual void last_crash_dump(ExpandingString &str) const {} + virtual size_t last_crash_dump_size() const { return 0; } + virtual void* last_crash_dump_ptr() const { return nullptr; } protected: // we start soft_armed false, so that actuators don't send any // values until the vehicle code has fully started