mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 09:43:57 -04:00
Revert "AP_Mission: Better AUTO watchdog restore"
This reverts commit d774bf3ea5
.
This commit is contained in:
parent
5ce4ff916e
commit
dcd9003831
@ -225,7 +225,7 @@ void AP_Mission::update()
|
||||
}
|
||||
|
||||
// save persistent waypoint_num for watchdog restore
|
||||
hal.util->persistent_data.waypoint_num = _prev_nav_cmd_wp_index != AP_MISSION_CMD_INDEX_NONE ? MIN(_nav_cmd.index,_prev_nav_cmd_wp_index+1) : _nav_cmd.index;
|
||||
hal.util->persistent_data.waypoint_num = _nav_cmd.index;
|
||||
|
||||
// check if we have an active nav command
|
||||
if (!_flags.nav_cmd_loaded || _nav_cmd.index == AP_MISSION_CMD_INDEX_NONE) {
|
||||
|
Loading…
Reference in New Issue
Block a user