Skip to content

Commit

Permalink
Fix user side hw_subtype string fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
jnippula committed May 6, 2024
1 parent a250ac5 commit 71be528
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 @@ -190,7 +190,7 @@ int board_determine_hw_info(void)
orb_copy(ORB_ID(hw_info), hwinfo_sub, &hwinfo);
orb_unsubscribe(hwinfo_sub);

memcpy(hw_info, &hwinfo, min(sizeof(hwinfo), sizeof(hw_info)));
memcpy(hw_info, hwinfo.hw_info, min(sizeof(hwinfo.hw_info), sizeof(hw_info)));

/* Drone guid */
guid_sub = orb_subscribe(ORB_ID(guid));
Expand Down

0 comments on commit 71be528

Please sign in to comment.