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

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());