forked from Archive/PX4-Autopilot
uavcan: minor fix regarding log output (#21415)
Error message for "UavcanServers init" returns error code from UavcanServers->init instead of _sensor_bridges->init
This commit is contained in:
parent
f4681f01b6
commit
831b0d9b11
|
@ -577,7 +577,7 @@ UavcanNode::init(uavcan::NodeID node_id, UAVCAN_DRIVER::BusEvent &bus_events)
|
|||
int rv = _servers->init();
|
||||
|
||||
if (rv < 0) {
|
||||
PX4_ERR("UavcanServers init: %d", ret);
|
||||
PX4_ERR("UavcanServers init: %d", rv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue