Skip to content

Commit

Permalink
AP_Mission: don't update _last_change_time_ms for write of home
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Jan 14, 2025
1 parent 6623016 commit 05b209d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/AP_Mission/AP_Mission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,10 @@ bool AP_Mission::write_cmd_to_storage(uint16_t index, const Mission_Command& cmd
}

// remember when the mission last changed
_last_change_time_ms = AP_HAL::millis();
if (index != 0) {
// Update of home location is not a true change
_last_change_time_ms = AP_HAL::millis();
}

// return success
return true;
Expand Down

0 comments on commit 05b209d

Please sign in to comment.