Skip to content

Commit

Permalink
fixup style and rebase conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Apr 18, 2022
1 parent 2923d39 commit 4969dd3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/mavsdk/core/mavlink_parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,12 @@ MAVLinkParameters::provide_server_param_custom(const std::string& name, const st
return Result::Success;
}

MAVLinkParameters::Result
MAVLinkParameters::set_param(const std::string& name, ParamValue value,
MAVLinkParameters::Result MAVLinkParameters::set_param(
const std::string& name,
ParamValue value,

std::optional<uint8_t> maybe_component_id,
bool extended)
bool extended)
{
auto prom = std::promise<Result>();
auto res = prom.get_future();
Expand Down Expand Up @@ -727,7 +728,7 @@ void MAVLinkParameters::do_work()
if (work->extended) {
return static_cast<uint8_t>(MAV_COMP_ID_CAMERA);
} else {
return _parent.get_autopilot_id();
return static_cast<uint8_t>(MAV_COMP_ID_AUTOPILOT1);
}
}
}();
Expand Down

0 comments on commit 4969dd3

Please sign in to comment.