From 5a7fb8749dc4b0d7b981e8839780eccecfcea3de Mon Sep 17 00:00:00 2001 From: Timo Sairiala Date: Mon, 19 Aug 2024 13:50:45 +0300 Subject: [PATCH] fix device serial number reading on user side Matching change exists already on mpfs, this was probably accidentally not updated --- platforms/nuttx/src/px4/common/usr_mcu_version.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/nuttx/src/px4/common/usr_mcu_version.cpp b/platforms/nuttx/src/px4/common/usr_mcu_version.cpp index e5b2d2066293..058967d1899c 100644 --- a/platforms/nuttx/src/px4/common/usr_mcu_version.cpp +++ b/platforms/nuttx/src/px4/common/usr_mcu_version.cpp @@ -203,7 +203,7 @@ int board_determine_hw_info(void) orb_copy(ORB_ID(guid), guid_sub, &guid); orb_unsubscribe(guid_sub); - memcpy(device_serial_number, &guid, min(sizeof(device_serial_number), sizeof(guid))); + memcpy(device_serial_number, guid.mfguid, min(sizeof(device_serial_number), sizeof(guid.mfguid))); return 0; }