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

APM: fixed typo

parent 6de05664
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ static struct Location get_cmd_with_index(int16_t i)
// Add on home altitude if we are a nav command (or other command with altitude) and stored alt is relative
if ((temp.id < MAV_CMD_NAV_LAST || temp.id == MAV_CMD_CONDITION_CHANGE_ALT) &&
(temp.options & MASK_OPTIONS_RELATIVE_ALT) &&
(temp.lat != 0 || temp.lng != 0 || tmp.alt != 0)) {
(temp.lat != 0 || temp.lng != 0 || temp.alt != 0)) {
temp.alt += home.alt;
}
......
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