Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version topic publish #650

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Fix version topic publish #650

merged 1 commit into from
Mar 4, 2024

Conversation

jlaitine
Copy link

@jlaitine jlaitine commented Mar 4, 2024

The data was not copied in the correct place inside the topic structure

@jlaitine jlaitine requested review from pussuw and t-salminen March 4, 2024 08:44
@@ -329,11 +330,16 @@ int board_determine_hw_info(void)

/* Make local copies of guid and hwinfo */

memcpy(&guid, device_serial_number, min(sizeof(device_serial_number), sizeof(guid)));
memcpy(&hwinfo, hw_info, min(sizeof(hwinfo), sizeof(hw_info)));
memcpy(guid.mfguid, device_serial_number, min(sizeof(device_serial_number), sizeof(guid)));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should sizeof(guid) be sizeof(guid.mfguid) ?

Same for hwinfo below ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, thanks!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now fixed

@jlaitine jlaitine force-pushed the fix_version_topic_publis branch from 6770743 to 7b2170f Compare March 4, 2024 09:43
@jlaitine jlaitine merged commit 52095a1 into main Mar 4, 2024
25 checks passed
@jlaitine jlaitine deleted the fix_version_topic_publis branch March 4, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants