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:
numan 2023-04-04 08:17:31 +03:00 committed by GitHub
parent f4681f01b6
commit 831b0d9b11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}
}