uavcan: don't print an error if there is no UAVCAN device on the CAN bus

This commit is contained in:
Igor Mišić 2022-06-14 18:55:05 +02:00
parent 680191cc75
commit 0922f003f5
1 changed files with 2 additions and 1 deletions

View File

@ -1200,7 +1200,8 @@ UavcanNode::param_count(uavcan::NodeID node_id)
req.index = 0;
int call_res = _param_getset_client.call(node_id, req);
if (call_res < 0) {
// -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);
} else {