AP_HAL: added was_watchdog_safety_off()

used to restore safety state on watchdog reset
This commit is contained in:
Andrew Tridgell 2019-04-20 10:24:06 +10:00 committed by Randy Mackay
parent 6c7fd8e9ed
commit 92f12deb51
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ public:
// return true if the reason for the reboot was a watchdog reset
virtual bool was_watchdog_reset() const { return false; }
// return true if safety was off and this was a watchdog reset
virtual bool was_watchdog_safety_off() 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; }