Skip to content

Commit

Permalink
fix device serial number reading on user side
Browse files Browse the repository at this point in the history
Matching change exists already on mpfs, this was probably accidentally
not updated
  • Loading branch information
TimoSairiala committed Aug 19, 2024
1 parent a220729 commit 91c65e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/nuttx/src/px4/common/usr_mcu_version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 91c65e3

Please sign in to comment.