From 1174c4fad8c6b2484f7e8976ff2d18fd6c8cc536 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 26 Sep 2024 10:51:30 +1200 Subject: [PATCH] core: fix debug output --- src/mavsdk/core/mavlink_command_receiver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mavsdk/core/mavlink_command_receiver.cpp b/src/mavsdk/core/mavlink_command_receiver.cpp index 4abeeefc7..b16913513 100644 --- a/src/mavsdk/core/mavlink_command_receiver.cpp +++ b/src/mavsdk/core/mavlink_command_receiver.cpp @@ -47,7 +47,7 @@ void MavlinkCommandReceiver::receive_command_int(const mavlink_message_t& messag cmd.target_component_id != MAV_COMP_ID_ALL) { if (_debugging) { LogDebug() << "Ignored command int to component " << (int)cmd.target_component_id - << " instead of " << _server_component_impl.get_own_component_id(); + << " instead of " << (int)_server_component_impl.get_own_component_id(); } return; } @@ -96,7 +96,7 @@ void MavlinkCommandReceiver::receive_command_long(const mavlink_message_t& messa cmd.target_component_id != MAV_COMP_ID_ALL) { if (_debugging) { LogDebug() << "Ignored command long to component " << (int)cmd.target_component_id - << " instead of " << _server_component_impl.get_own_component_id(); + << " instead of " << (int)_server_component_impl.get_own_component_id(); } return; }