Skip to content

Commit

Permalink
uavcan: change err msg to debug for param get/set
Browse files Browse the repository at this point in the history
  • Loading branch information
haitomatic committed Jul 14, 2023
1 parent 36286e4 commit 6e94108
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/drivers/uavcan/uavcan_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ UavcanNode::Run()
int call_res = _param_getset_client.call(request.node_id, req);

if (call_res < 0) {
PX4_ERR("couldn't send GetSet: %d", call_res);
PX4_DEBUG("couldn't send GetSet: %d", call_res);

} else {
_param_in_progress = true;
Expand Down Expand Up @@ -852,7 +852,7 @@ UavcanNode::Run()

if (call_res < 0) {
_param_list_in_progress = false;
PX4_ERR("couldn't send param list GetSet: %d", call_res);
PX4_DEBUG("couldn't send param list GetSet: %d", call_res);

} else {
_param_in_progress = true;
Expand Down Expand Up @@ -1077,7 +1077,7 @@ UavcanNode::cb_getset(const uavcan::ServiceCallResult<uavcan::protocol::param::G
if (call_res < 0) {
_count_in_progress = false;
_count_index = 0;
PX4_ERR("couldn't send GetSet during param count: %d", call_res);
PX4_DEBUG("couldn't send GetSet during param count: %d", call_res);
}

} else {
Expand All @@ -1090,7 +1090,7 @@ UavcanNode::cb_getset(const uavcan::ServiceCallResult<uavcan::protocol::param::G
_param_counts[node_id] = 0;
_count_in_progress = false;
_count_index = 0;
PX4_ERR("GetSet error during param count");
PX4_DEBUG("GetSet error during param count");
}

} else {
Expand Down Expand Up @@ -1126,8 +1126,8 @@ UavcanNode::cb_getset(const uavcan::ServiceCallResult<uavcan::protocol::param::G
_param_response_pub.publish(response);

} else {
PX4_ERR("GetSet error at node : %d, param index %d, need resend...", result.getCallID().server_node_id.get(),
_param_index);
PX4_DEBUG("GetSet error at node : %d, param index %d, need resend...", result.getCallID().server_node_id.get(),
_param_index);

uavcan::protocol::param::GetSet::Request req;

Expand All @@ -1136,7 +1136,7 @@ UavcanNode::cb_getset(const uavcan::ServiceCallResult<uavcan::protocol::param::G
int call_res = _param_getset_client.call(result.getCallID().server_node_id.get(), req);

if (call_res < 0) {
PX4_ERR("resend failed");
PX4_DEBUG("resend failed");
}

_param_index--;
Expand All @@ -1156,7 +1156,7 @@ UavcanNode::param_count(uavcan::NodeID node_id)

// -ErrInvalidParam is returned when no UAVCAN device is connected to the CAN bus
if ((call_res < 0) && (-uavcan::ErrInvalidParam != call_res)) {
PX4_ERR("couldn't start parameter count: %d", call_res);
PX4_DEBUG("couldn't start parameter count: %d", call_res);

} else {
_count_in_progress = true;
Expand Down

0 comments on commit 6e94108

Please sign in to comment.