mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 06:14:14 +08:00
uavcan: don't print an error if there is no UAVCAN device on the CAN bus
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user