mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
UavcanNode:Use inttypes
This commit is contained in:
committed by
Julian Oes
parent
71f3a02c65
commit
616401190c
@@ -549,12 +549,12 @@ extern "C" int uavcannode_start(int argc, char *argv[])
|
|||||||
board_booted_by_px4() &&
|
board_booted_by_px4() &&
|
||||||
#endif
|
#endif
|
||||||
(node_id < 0 || node_id > uavcan::NodeID::Max || !uavcan::NodeID(node_id).isUnicast())) {
|
(node_id < 0 || node_id > uavcan::NodeID::Max || !uavcan::NodeID(node_id).isUnicast())) {
|
||||||
PX4_ERR("Invalid Node ID %i", node_id);
|
PX4_ERR("Invalid Node ID %" PRId32, node_id);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start
|
// Start
|
||||||
PX4_INFO("Node ID %u, bitrate %u", node_id, bitrate);
|
PX4_INFO("Node ID %" PRId32 ", bitrate %" PRId32, node_id, bitrate);
|
||||||
int rv = uavcannode::UavcanNode::start(node_id, bitrate);
|
int rv = uavcannode::UavcanNode::start(node_id, bitrate);
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
|
|||||||
Reference in New Issue
Block a user