Skip to content
Snippets Groups Projects
Commit 459f71f5 authored by David Sidrane's avatar David Sidrane Committed by Lorenz Meier
Browse files

zubaxgnss-v1 bootloader uses common board api for UUID

parent 9efeb0d8
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ px4_add_module(
SRCS
boot.c
led.c
../../common/stm32/board_identity.c
${px4_bootloader_base}src/uavcan/main.c
${px4_bootloader_base}src/common/boot_app_shared.c
${px4_bootloader_base}src/sched/timer.c
......
......@@ -165,14 +165,13 @@ uint8_t board_get_product_name(uint8_t *product_name, size_t maxlen)
size_t board_get_hardware_version(uavcan_HardwareVersion_t *hw_version)
{
size_t length = 12;
memset(hw_version, 0 , sizeof(uavcan_HardwareVersion_t));
hw_version->major = HW_VERSION_MAJOR;
hw_version->minor = HW_VERSION_MINOR;
memcpy(hw_version->unique_id, (void *) STM32_SYSMEM_UID, length);
return length;
board_get_uuid_raw((raw_uuid_byte_t *) hw_version->unique_id);
return PX4_CPU_UUID_BYTE_LENGTH;
}
/****************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment