Skip to content

Commit

Permalink
Merge pull request #2320 from mavlink/pr-fix-action-progress
Browse files Browse the repository at this point in the history
action: ignore InProgress updates
  • Loading branch information
julianoes authored May 30, 2024
2 parents 23517a0 + c515707 commit 182dd32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mavsdk/plugins/action/action_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,11 @@ Action::Result ActionImpl::action_result_from_command_result(MavlinkCommandSende
void ActionImpl::command_result_callback(
MavlinkCommandSender::Result command_result, const Action::ResultCallback& callback) const
{
if (command_result == MavlinkCommandSender::Result::InProgress) {
// We only want to return once, so we can't call the callback on progress updates.
return;
}

Action::Result action_result = action_result_from_command_result(command_result);

if (callback) {
Expand Down

0 comments on commit 182dd32

Please sign in to comment.