From 7f96d4ad1205038cf6fb0a8de0b1efba7c02d82a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 11 Apr 2019 19:50:56 +1000 Subject: [PATCH] AP_HAL: added was_watchdog_reset() --- 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 bf072f4fee..2c882dd71e 100644 --- a/libraries/AP_HAL/Util.h +++ b/libraries/AP_HAL/Util.h @@ -14,6 +14,9 @@ public: void set_soft_armed(const bool b) { soft_armed = b; } bool get_soft_armed() const { return soft_armed; } + // return true if the reason for the reboot was a watchdog reset + virtual bool was_watchdog_reset() const { return false; } + virtual const char* get_custom_log_directory() const { return nullptr; } virtual const char* get_custom_terrain_directory() const { return nullptr; } virtual const char *get_custom_storage_directory() const { return nullptr; }