AP_HAL: added was_watchdog_reset()

This commit is contained in:
Andrew Tridgell 2019-04-11 19:50:56 +10:00
parent a5309b3afa
commit 7f96d4ad12
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ public:
void set_soft_armed(const bool b) { soft_armed = b; } void set_soft_armed(const bool b) { soft_armed = b; }
bool get_soft_armed() const { return soft_armed; } 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_log_directory() const { return nullptr; }
virtual const char* get_custom_terrain_directory() const { return nullptr; } virtual const char* get_custom_terrain_directory() const { return nullptr; }
virtual const char *get_custom_storage_directory() const { return nullptr; } virtual const char *get_custom_storage_directory() const { return nullptr; }