Browse Source

AP_HAL: added was_watchdog_reset()

mission-4.1.18
Andrew Tridgell 6 years ago
parent
commit
7f96d4ad12
  1. 3
      libraries/AP_HAL/Util.h

3
libraries/AP_HAL/Util.h

@ -14,6 +14,9 @@ public: @@ -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; }

Loading…
Cancel
Save