Skip to content
Snippets Groups Projects
Commit 020ba38c authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

AP_OBC: fixed resume on GPS loss

parent d8e0c89d
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ APM_OBC::check(APM_OBC::control_mode mode,
_state = STATE_GPS_LOSS;
if (_wp_gps_loss) {
if (_command_index != NULL) {
_saved_wp = _command_index->get() + 1;
_saved_wp = _command_index->get();
}
change_command(_wp_gps_loss);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment