uavcan uses common board api to interface with systemlib/board_serial

This commit is contained in:
David Sidrane
2017-01-24 15:44:47 -10:00
committed by Lorenz Meier
parent 5bdd5c7989
commit 4dc8e61612
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ int UavcanNode::getHardwareVersion(uavcan::protocol::HardwareVersion &hwver)
; // All other values of px4_board_name() resolve to zero
}
uint8_t udid[12] = {}; // Someone seems to love magic numbers
raw_uuid_byte_t udid = {};
get_board_serial(udid);
uavcan::copy(udid, udid + sizeof(udid), hwver.unique_id.begin());
rv = 0;
+1 -1
View File
@@ -231,7 +231,7 @@ void UavcanEsc::fill_node_info()
hwver.major = HW_VERSION_MAJOR;
hwver.minor = HW_VERSION_MINOR;
uint8_t udid[12] = {}; // Someone seems to love magic numbers
raw_uuid_byte_t udid = {};
get_board_serial(udid);
uavcan::copy(udid, udid + sizeof(udid), hwver.unique_id.begin());
+1 -1
View File
@@ -258,7 +258,7 @@ void UavcanNode::fill_node_info()
hwver.major = HW_VERSION_MAJOR;
hwver.minor = HW_VERSION_MINOR;
uint8_t udid[12] = {}; // Someone seems to love magic numbers
raw_uuid_byte_t udid = {};
get_board_serial(udid);
uavcan::copy(udid, udid + sizeof(udid), hwver.unique_id.begin());