forked from Archive/PX4-Autopilot
uavcan: don't print an error if there is no UAVCAN device on the CAN bus
This commit is contained in:
parent
680191cc75
commit
0922f003f5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue